diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c9e1d8b2d2d8bfe8301bcb778acb4f1e31148e6..6c41991a8745df13ec99683d37a6539b3888d72e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added ### +* Add TimeZone class and parse the server's time zone in the Info response. + ### Changed ### * Set PyYAML dependency back to PyYaml>=5.4.1 (from 6.0) for better diff --git a/src/caosdb/common/timezone.py b/src/caosdb/common/timezone.py index 3fd51b65ada38076f4ba09fbf2c35f0c1b316b77..2bd3d3d4d739118e160f7b3a35757fbb0afe70cb 100644 --- a/src/caosdb/common/timezone.py +++ b/src/caosdb/common/timezone.py @@ -1,5 +1,17 @@ class TimeZone(): + """ + TimeZone, e.g. CEST, Europe/Berlin, UTC+4. + + Attributes + ---------- + zone_id : string + ID of the time zone. + offset : int + Offset to UTC in seconds. + display_name : string + A human-friendly name of the time zone: + """ def __init__(self, zone_id, offset, display_name): self.zone_id = zone_id self.offset = offset