From f30908958a782f67184a2c6dec3aa97793e633d9 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Tue, 8 Jun 2021 11:29:22 +0200
Subject: [PATCH] Changed the date format back again - to align with the rest
 of the VIPS web app

---
 cydiapomonella/templates/cydiapomonella/index.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cydiapomonella/templates/cydiapomonella/index.html b/cydiapomonella/templates/cydiapomonella/index.html
index 5d3a250f..31f87515 100644
--- a/cydiapomonella/templates/cydiapomonella/index.html
+++ b/cydiapomonella/templates/cydiapomonella/index.html
@@ -481,8 +481,8 @@
 
             }
             $('#idSpanWeatherStationName').html($('#weatherStationId').find(':selected').text());
-            $('#idSpanStartDate').html(moment($('#idTxtDateInput').val()).format("DD.MM.YYYY"));
-            $('#idSpanEndDate').html(moment(JSON.stringify(dateYesterday).substring(1,11)).format("DD.MM.YYYY"));
+            $('#idSpanStartDate').html($('#idTxtDateInput').val());
+            $('#idSpanEndDate').html(JSON.stringify(dateYesterday).substring(1,11));
             $('#idDivResultNonNegative').html(Math.round(TM_NON_NEGATIVE));
             $('#idSpanDateDifference').html(dateDifferenceInDays(new Date($('#idTxtDateInput').val()), new Date()));
         }
@@ -512,7 +512,7 @@
                                             "mData"     :   "resultDate",
                                             "render"    :   function(data, type, full, meta)
                                                             {
-                                                                return moment(data).format("DD.MM.YYYY");
+                                                                return data;
                                                             },
                                             "sClass" :  "colCenter",
                                             "bSortable" : false
-- 
GitLab