From 9fec0b8c25a4faa18c4b05e7754bb2973db9870d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 12 Sep 2023 16:30:50 +0200 Subject: Fix timestamp0 and timestamp in RC showjson --- lib/Json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Json.cpp b/lib/Json.cpp index 121c2de..b2315b6 100644 --- a/lib/Json.cpp +++ b/lib/Json.cpp @@ -72,7 +72,7 @@ namespace json { ss << "\"" << escape_json(std::get(value)) << "\""; } else if (std::holds_alternative(value)) { - ss << std::defaultfloat << std::get(value); + ss << std::fixed << std::get(value); } else if (std::holds_alternative(value)) { ss << std::get(value); -- cgit v1.2.3