diff --git a/src/string.cpp b/src/string.cpp index 22c41cae..fe0e2e47 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -234,7 +234,8 @@ std::string formatTime(const char* format, double timestamp) { } std::string formatTimeISO(double timestamp) { - return formatTime("%FT%T%z", timestamp); + // Windows doesn't support %F or %T, and %z gives the full timezone name instead of offset + return formatTime("%Y-%m-%d %H:%M:%S %z", timestamp); }