From: Jérôme Benoit Date: Sun, 18 Oct 2020 00:41:07 +0000 (+0200) Subject: Refine date format in logs. X-Git-Tag: v1.0.1-0~290 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4455e6148dde47af054aafb5e9a819e9dc658bb6;p=e-mobility-charging-stations-simulator.git Refine date format in logs. Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Utils.js b/src/utils/Utils.js index 216790bc..f25f48b2 100644 --- a/src/utils/Utils.js +++ b/src/utils/Utils.js @@ -128,7 +128,7 @@ class Utils { static basicFormatLog(prefixString = '') { const date = new Date(); - return date.toISOString().substr(0, 19) + prefixString; + return date.toLocaleString() + prefixString; } static objectHasOwnProperty(object, property) {