-
Notifications
You must be signed in to change notification settings - Fork 70
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
Timezone issues #100
Comments
Thanks for catching this. I will put up a fix later today. |
Thank you for looking this one! Unfortunately, the problem did not go away. Not sure if Nightscout is acting correctly in this case. For example, this is bolus event written by tconnectsync. 6am here is my actual local time when the bolus was delivered, and utcOffset was added:
But when I manually add events to Nightscout, it looks like this. In this case created_at is UTC time, corresponding to 9:38 my local time.
Also it's worth mentioning everything worked before the update. Hope this will help! Another this, after pulling the latest code got the following message: 2024-10-02 08:45:50 INFO Processed 8 events. Last event ID seen: 1687579 (this line) |
@HockeyTrafalgar Okay I think I have it translating the timezones correctly now. I was translating the time which was in the pump's local timezone from UTC to the equivalent time in that timezone (which then caused the off-by-UTC-offset) instead of replacing the timezone offset on that timezone to be that of the local timezone so that Nightscout was aware of the timezone. Please take a look at v2.1.0 and let me know if it fixes it (It resolved the issue on my local instance with America/New_York TZ) |
Perfect, timezones work! Just little message is still there:
Please allow me to take this moment to tell you how much your app helps our family to monitor our daughter's diabetes while she's in school. She's 8 and she started to operate the pump by herself this year, so it's absolutely necessary to see in realtime what's up with automatic delivery and if there are any mistakes in manual boluses. Thank you so much. |
The error should be gone now -- although it shouldn't have actually affected the operation of tconnectsync since it was an error in how i was handling the return exit code at the very end of the app. Thanks for reporting the issue and glad that it helps! |
Hi! Thanks for migrating to Source in such a timely fashion!)
After updating to the latest revision from Github (commit ID d9d1b8a), it looks like times of entries got messed up. Regardless of the TIMEZONE_NAME setting in .env, all events are written to Nightscout as correct time+4 hours (my TIMEZONE_NAME='Asia/Dubai', which is GMT+4). Tried changing to TIMEZONE_NAME='America/New_York' or TIMEZONE_NAME='America/Los_Angeles', does not make a difference - all events are still written with time +4 hours.
The text was updated successfully, but these errors were encountered: