dartungar / obsidian-mood-tracker

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

Bug with timezones for entries around midnight #53

Open enrico3 opened 1 month ago

enrico3 commented 1 month ago

Hi,

I added an entry at 2024-06-03 1:37 am. My timezone offset is +2: grafik

The graph in Obsidian shows this entry for 2024-06-02 and does not show the details below: grafik

If I change the timestamp to say 3:37am then it works: grafik grafik

Cheers!

dartungar commented 1 month ago

@enrico3 this has to do with ChartJS date handling. I haven't found a good solution yet; for now, you might want to work around that by adjusting time of logging (hopefully this won't be a big issue since the problem only occurs after the midnight...).

enrico3 commented 1 month ago

@dartungar Yeah for me it's not a problem. I just wanted to let you know. Thank you for the info!