diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-09-12 16:30:50 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-09-12 16:30:50 +0200 |
commit | 9fec0b8c25a4faa18c4b05e7754bb2973db9870d (patch) | |
tree | 631682574e17ba9057a513d7b8bec2323e5b389f | |
parent | 0f11a2bc9b22a1362245459ae45ae4f86cb9374e (diff) | |
download | dabmod-9fec0b8c25a4faa18c4b05e7754bb2973db9870d.tar.gz dabmod-9fec0b8c25a4faa18c4b05e7754bb2973db9870d.tar.bz2 dabmod-9fec0b8c25a4faa18c4b05e7754bb2973db9870d.zip |
Fix timestamp0 and timestamp in RC showjson
-rw-r--r-- | lib/Json.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string>(value)) << "\""; } else if (std::holds_alternative<double>(value)) { - ss << std::defaultfloat << std::get<double>(value); + ss << std::fixed << std::get<double>(value); } else if (std::holds_alternative<ssize_t>(value)) { ss << std::get<ssize_t>(value); |