mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-24 03:43:18 -04:00
fix(history): format local time string correctly in JSON output
This commit is contained in:
parent
3642ecab61
commit
02782ce69e
@ -180,7 +180,7 @@ nlohmann::json history::as_json() const {
|
||||
if (auto ts = histent.timestamp(); ts.has_value()) {
|
||||
entry["timestamp"] = {
|
||||
{"epoch", ts.value()},
|
||||
{"local", fmt::format("%FT%T", safe_localtime(ts.value()))},
|
||||
{"local", fmt::format("{:%FT%T}", safe_localtime(ts.value()))},
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user