diff --git a/chrono/datetime.cpp b/chrono/datetime.cpp index 7dad960..10da38b 100644 --- a/chrono/datetime.cpp +++ b/chrono/datetime.cpp @@ -217,8 +217,8 @@ string DateTime::toIsoStringWithCustomDelimiters(TimeSpan timeZoneDelta, char da { stringstream s(stringstream::in | stringstream::out); s << setfill('0'); - s << setw(4) << year() << dateDelimiter << setw(2) << month() << dateDelimiter << setw(2) << day() << 'T' << setw(2) << hour() << timeDelimiter << setw(2) << minute() << timeDelimiter - << setw(2) << second(); + s << setw(4) << year() << dateDelimiter << setw(2) << month() << dateDelimiter << setw(2) << day() << 'T' << setw(2) << hour() << timeDelimiter + << setw(2) << minute() << timeDelimiter << setw(2) << second(); const int milli(millisecond()); const int micro(microsecond()); const int nano(nanosecond()); diff --git a/chrono/datetime.h b/chrono/datetime.h index 308fdf4..09e8dcb 100644 --- a/chrono/datetime.h +++ b/chrono/datetime.h @@ -85,7 +85,8 @@ public: constexpr bool isSameDay(const DateTime &other) const; std::string toString(DateTimeOutputFormat format = DateTimeOutputFormat::DateAndTime, bool noMilliseconds = false) const; void toString(std::string &result, DateTimeOutputFormat format = DateTimeOutputFormat::DateAndTime, bool noMilliseconds = false) const; - std::string toIsoStringWithCustomDelimiters(TimeSpan timeZoneDelta = TimeSpan(), char dateDelimiter = '-', char timeDelimiter = ':', char timeZoneDelimiter = ':') const; + std::string toIsoStringWithCustomDelimiters( + TimeSpan timeZoneDelta = TimeSpan(), char dateDelimiter = '-', char timeDelimiter = ':', char timeZoneDelimiter = ':') const; std::string toIsoString(TimeSpan timeZoneDelta = TimeSpan()) const; constexpr std::time_t toTimeStamp() const; static const char *printDayOfWeek(DayOfWeek dayOfWeek, bool abbreviation = false);