From 665cd361690792acd4065d8ee0e67aa2d8be0248 Mon Sep 17 00:00:00 2001
From: Lene Wasskog <lene.wasskog@nibio.no>
Date: Mon, 4 Nov 2024 13:44:34 +0100
Subject: [PATCH] feat: Ensure correct timeZone for weather stations

---
 .../templates/cerealblotchmodels/barleynetblotchform.html      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
index a3c988d3..74e66b2f 100755
--- a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
+++ b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
@@ -73,7 +73,7 @@
 		</div>
 		<div class="row">
 			<div class="col-md-6">
-				<input type="hidden" name="timeZone" value="Europe/Oslo"/>
+				<input type="hidden" name="timeZone"/>
 				<fieldset>
 					<legend>{% trans "Select weather data" %}</legend>
 					<div class="form-group">
@@ -315,6 +315,7 @@
 
 	window.displayWeatherstationInput = () => {
 		radioWeatherstation.checked = true;
+		theForm["timeZone"].value = "Europe/Oslo"
 		document.getElementById('input-weatherstation').style.display="block";
 		document.getElementById('input-coordinates').style.display="none";
 	}
-- 
GitLab