diff --git a/chrono/datetime.cpp b/chrono/datetime.cpp index 5f36c4b..4c755fd 100644 --- a/chrono/datetime.cpp +++ b/chrono/datetime.cpp @@ -178,7 +178,7 @@ const char *DateTime::printDayOfWeek(DayOfWeek dayOfWeek, bool abbreviation) */ DateTime DateTime::now() { - return DateTime(time(nullptr)); + return DateTime::fromTimeStamp(time(nullptr)); } /*! diff --git a/chrono/datetime.h b/chrono/datetime.h index f124db9..8e36168 100644 --- a/chrono/datetime.h +++ b/chrono/datetime.h @@ -126,7 +126,7 @@ constexpr inline DateTime::DateTime() : {} /*! - * Constructs a DateTime to a specified number of \a ticks. + * Constructs a DateTime with the specified number of \a ticks. */ constexpr inline DateTime::DateTime(uint64 ticks) : m_ticks(ticks)