From 65ae0557a183a1dce037781e08aa6b904f9fd505 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Mon, 18 Mar 2024 14:15:33 +0100
Subject: [PATCH] Get timezone from .env

---
 SEPTREFHUM.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/SEPTREFHUM.py b/SEPTREFHUM.py
index fdac717..a1cb743 100755
--- a/SEPTREFHUM.py
+++ b/SEPTREFHUM.py
@@ -52,10 +52,7 @@ tmpfile_path = "tmp/"
 # Names of weather parameters in NetCDF files
 RR = os.getenv("RR")
 UM = os.getenv("UM")
-
-
-# TODO: Make this configurable (.env)
-local_timezone = pytz.timezone("Europe/Oslo")
+local_timezone = pytz.timezone(os.getenv("LOCAL_TIMEZONE"))
 
 # Iterate the set of hourly weather data files
 # 1. When's the latest wh_[DATE].nc file? - set earliest weather data file: start_date = [DATE]-2 days
-- 
GitLab