Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

TZ: value? #43

Closed
atomphil opened this issue Feb 12, 2023 · 2 comments
Closed

TZ: value? #43

atomphil opened this issue Feb 12, 2023 · 2 comments

Comments

@atomphil
Copy link

atomphil commented Feb 12, 2023

I have the problem that the data from Diasend in Nightscout are shifted by one hour, the CGM values which are sent directly from xDrip (Companion to CamAPS) to Nightscout are correct.

Nightscout runs as a webapp (forked from https://github.com/burnedikt/cgm-remote-monitor) at Northflank with an Atlas Mongo DB. My time zone is Germany (UTC+1 or GMT+1).

I think setting the TZ variable would fix the problem, but unfortunately it doesn't say in the examples what value I have to assign to it.

How does the whole construction actually behave during the daylight saving time changeover?

@burnedikt
Copy link
Owner

Just set TZ to 'Europe/Berlin. List of timezone values accepted by nodejs: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

Unless you specify the TZ as only the offset to UTC (e.g. UTC-01:00, the information about daylight saving time (DST) is implicitly known. I.e. don't use GMT+01:00 but use Europe/Berlin instead.

@burnedikt
Copy link
Owner

Simple browser-based utility to find out your current timezone:

https://js-qxakt9.stackblitz.io

(Will not work if you altered your device's timezone manually).

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

No branches or pull requests

2 participants