1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Minor fix in date-time class.

This commit is contained in:
Sandu Liviu Catalin 2017-02-22 18:09:02 +02:00
parent 76759118cc
commit 1bfb421184
2 changed files with 5 additions and 5 deletions

View File

@ -123,9 +123,9 @@ void Datetime::Set(Uint16 year, Uint8 month, Uint8 day, Uint8 hour, Uint8 minute
if (!Chrono::ValidDate(year, month, day))
{
STHROWF("Invalid date: %04u%c%02u%c%02u%c%u"
, m_Delimiter, m_Year
, m_Delimiter, m_Month
, m_Delimiter, m_Day
, m_DateDelim, m_Year
, m_DateDelim, m_Month
, m_DateDelim, m_Day
);
}
// Is the specified hour within range?

View File

@ -34,8 +34,8 @@ private:
// ------------------------------------------------------------------------------------------------
SQChar m_Delimiter; // Date and time delimiter when generating strings.
SQChar m_DateDelim; // Time component delimiter when generating strings.
SQChar m_TimeDelim; // Date component delimiter when generating strings.
SQChar m_DateDelim; // Date component delimiter when generating strings.
SQChar m_TimeDelim; // Time component delimiter when generating strings.
protected: