Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
7456343e
Verified
Commit
7456343e
authored
2 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
DOC: update CHANGELOG
parent
37d136a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!71
Release 0.9
,
!65
BUG: setup timezone in deploy
Pipeline
#27771
passed
2 years ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
src/caosdb/common/timezone.py
+12
-0
12 additions, 0 deletions
src/caosdb/common/timezone.py
with
14 additions
and
0 deletions
CHANGELOG.md
+
2
−
0
View file @
7456343e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/caosdb/common/timezone.py
+
12
−
0
View file @
7456343e
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment