From ff0c7fc375250a862bbb801ff4bfbdaf29875799 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 4 Dec 2024 16:55:31 +0100 Subject: [PATCH] update hosted.py --- hosted.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosted.py b/hosted.py index 274d36c..95d4d01 100644 --- a/hosted.py +++ b/hosted.py @@ -422,6 +422,11 @@ class Configuration(object): def metadata(self): return self._config['__metadata'] + @property + def metadata_timezone(self): + import pytz + return pytz.timezone(self.metadata['timezone']) + def __getitem__(self, key): return self._parsed[key]