Fix toString() #2

Open
CommanderRedYT wants to merge 2 commits from CommanderRedYT/fix-tostring into main
Showing only changes of commit d39d84e169 - Show all commits

View File

@@ -262,7 +262,7 @@ std::expected<std::chrono::seconds, std::string> parseDaypoint(std::string_view
std::string toString(const DateTime &dateTime)
{
return fmt::format("{:04}-{:02}-{:02}T{:02}:{:02}:{:02}.{:03}",
return fmt::format("{:04}-{:02}-{:02}T{:02}:{:02}:{:02}.{:03}Z",
int{dateTime.date.year()}, unsigned{dateTime.date.month()}, unsigned{dateTime.date.day()},
dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
}