Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dataset-api] Timestamps are served wrongly when in summer time #22

Open
ChrisMalewski opened this issue Jul 9, 2018 · 1 comment
Open

Comments

@ChrisMalewski
Copy link

uns ist heute bei der Series API bzgl. der Timestamps noch etwas aufgefallen, was auf eine falsche Configuration oder einen Bug hinweist.
Zeitstempel, die in der Sommerzeit liegen, werden anders behandelt, als die, die in der Winterzeit liegen.

In unserer Datenbank steht 1.7.2018 23:00 Uhr und 1.1.2018 23:00 Uhr.
Timestamp without timezone.
In der Config haben wir angegeben, dass alle Werte in der DB als CET interpretiert werden sollen.

Rufe ich nun z.B. 1.7.2018 (Datum innerhalb der CEST) über die API auf, erscheint 21:00 Uhr GMT (falsch)
Rufe ich nun z.B. 1.1.2018 (Datum innerhalb der CET) über die API auf, erscheint 22:00 Uhr GMT (richtig)

Kannst du das Verhalten nachstellen? Bzw. wie sollten wir den SOS/Rest API konfigurieren, damit die richtigen Zeitstempel geliefert werden?
Erwartet wird
1.7.2018 22:00 Uhr GMT
1.1.2018 22:00 Uhr GMT

@ridoo
Copy link
Member

ridoo commented Jul 9, 2018

Quick Fix: Configure SOS to use the raw offset +01:00 as Database time zone.

52North/SOS#622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants