From f440493e45ac393a2221b69e3210ad61da4a3293 Mon Sep 17 00:00:00 2001 From: azivner Date: Wed, 15 Aug 2018 08:48:16 +0200 Subject: [PATCH] use ISO dateformat on the frontend instead of european formatting --- src/public/javascripts/services/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/public/javascripts/services/utils.js b/src/public/javascripts/services/utils.js index 95ccc2599..527b052ef 100644 --- a/src/public/javascripts/services/utils.js +++ b/src/public/javascripts/services/utils.js @@ -24,7 +24,10 @@ function formatTimeWithSeconds(date) { } function formatDate(date) { - return padNum(date.getDate()) + ". " + padNum(date.getMonth() + 1) + ". " + date.getFullYear(); +// return padNum(date.getDate()) + ". " + padNum(date.getMonth() + 1) + ". " + date.getFullYear(); + // instead of european format we'll just use ISO as that's pretty unambiguous + + return formatDateISO(date); } function formatDateISO(date) {