Skip to content
Snippets Groups Projects
Commit 665cd361 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

feat: Ensure correct timeZone for weather stations

parent a1cdcde7
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<input type="hidden" name="timeZone" value="Europe/Oslo"/> <input type="hidden" name="timeZone"/>
<fieldset> <fieldset>
<legend>{% trans "Select weather data" %}</legend> <legend>{% trans "Select weather data" %}</legend>
<div class="form-group"> <div class="form-group">
...@@ -315,6 +315,7 @@ ...@@ -315,6 +315,7 @@
window.displayWeatherstationInput = () => { window.displayWeatherstationInput = () => {
radioWeatherstation.checked = true; radioWeatherstation.checked = true;
theForm["timeZone"].value = "Europe/Oslo"
document.getElementById('input-weatherstation').style.display="block"; document.getElementById('input-weatherstation').style.display="block";
document.getElementById('input-coordinates').style.display="none"; document.getElementById('input-coordinates').style.display="none";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment