jwoglom / tconnectsync

Syncs insulin pump data from Tandem t:connect to Nightscout for the t:slim X2
MIT License
111 stars 60 forks source link

Tconnectsync-heroku uploading treatments with incorrect times #96

Open CJWTX opened 1 week ago

CJWTX commented 1 week ago

For whatever reason, all of my pump data is submitted to nightscout -1 hour or so. So a bolus at 9:06 this morning shows up in nightscout as 8:06. Have verified that timezones are set correctly in the tconnectsync config and nightscout

Also checked in tconnect, the pump events are shown with the correct times.

jwoglom commented 1 week ago

Try setting the TIMEZONE_NAME environment variable to your proper timezone. By default, it's set to America/New_York -- you can find all of the valid names here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

CJWTX commented 1 week ago

Had verified it was set to America/Chicago

jwoglom commented 1 week ago

If you change your timezone env option to America/New_York, does the data that's posted to nightscout adjust by one hour? Maybe nightscout isn't configured for your timezone