From 7456343efe42918e140f95ed4c0dcf00449d1743 Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Thu, 1 Sep 2022 16:16:33 +0200 Subject: [PATCH] DOC: update CHANGELOG --- CHANGELOG.md | 2 ++ src/caosdb/common/timezone.py | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c9e1d8b..6c41991a 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 3fd51b65..2bd3d3d4 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 -- GitLab