From 026a98e16fb5813c86bb42eebece28e0ad9e9738 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Fri, 23 Nov 2018 11:01:24 +0100
Subject: [PATCH] Bugfix: Adjusting systemTime correctly

---
 VIPSWeb/static/js/frontpage.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VIPSWeb/static/js/frontpage.js b/VIPSWeb/static/js/frontpage.js
index f1a2e034..ae22a091 100755
--- a/VIPSWeb/static/js/frontpage.js
+++ b/VIPSWeb/static/js/frontpage.js
@@ -70,7 +70,7 @@ var filteredObservations;
  */
 function cacheObservations(callback)
 {
-	var systemTime = moment().subtract(settings.systemTimeOffsetMonths,"months");
+	var systemTime = moment().add(settings.systemTimeOffsetMonths,"months");
     var from = systemTime.format("YYYY") + "-01-01"; // XXXX-01-01
     var to = systemTime.format("YYYY-MM-DD"); 
     var uuidParam = settings.userUuid != null ? "&userUUID=" + settings.userUuid : "";
-- 
GitLab