dartungar / obsidian-mood-tracker

mood tracking for obsidian.md
MIT License
80 stars 4 forks source link

Mood tracker timestamps do not follow timezones #17

Closed evhan751 closed 11 months ago

evhan751 commented 11 months ago

Sorry if the title is a but confusing.

To put it simply, data saved in the JSON is based on the UTC timezone instead of the device time. For example, I'm in the UTC-4, and every timestamp is 4 hours ahead.

They seem to be converted in the app itself, but when I filter based on a date, every day is shifted by 4 hours. So if I filter for 2023-07-22, I'll get every entry from 2023-07-11 20:00 to 2023-07-22 20:00.

Thank you!

dartungar commented 11 months ago

@evhanlabrie should be fixed in 0.2.3. Jeez, dates in JS are crazy 🤡