mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 03:37:54 -06:00
Fix incorrect time format spec in iso_utc_timestamp.
Also add test for such errors in the future.
This commit is contained in:
parent
f1388fffba
commit
f0d75eea0d
2 changed files with 19 additions and 6 deletions
|
@ -46,7 +46,7 @@ time_t str2time(const std::string &str, TimeZone zone, TimeFormat fmt);
|
|||
|
||||
inline std::string iso_utc_timestamp(time_t t)
|
||||
{
|
||||
return time2str(t, TimeZone::utc, TimeFormat::gcode);
|
||||
return time2str(t, TimeZone::utc, TimeFormat::iso8601Z);
|
||||
}
|
||||
|
||||
inline std::string iso_utc_timestamp()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue