traggo / server

self-hosted tag-based time tracking
https://traggo.net
GNU General Public License v3.0
1.09k stars 55 forks source link

Time entry shift and calendar display issues in Iran timezone after daylight saving removal #147

Closed mksafavi closed 3 months ago

mksafavi commented 10 months ago

Describe the bug recently Iran updated the timezone and removed summer day light saving. when editing an entry in Traggo it would automatically +1 the hour. just to make sure I reproduced it with a new container as well. It only happened with Iran timezone.

reproduce editing bug set timezone to Iran (Asia/Tehran) add an entry from 14:30 to 14:45. image change 14:30 to 12:30 it would enter 13:30. image

more cases New entries are shifted by one hour: (the start time should be 12:49) image

The calendar view is broken. the entries are showing on the correct time (based on the left side timescale) but the entry time itself is not correct. image

jmattheis commented 10 months ago

Good catch, traggo bundles its own timezone database and the 0.3.0 version still has the outdated daylight savings time.

mksafavi commented 3 months ago

Hi. I was wondering, is it possible for you to look into this issue as well? The problem is going to come back in a few days :) I tried to check it out myself but I got stuck at compiling it and forgot about it till now.

jmattheis commented 3 months ago

Could you try out v0.4.4

mksafavi commented 3 months ago

Awesome. It's fixed. Thanks for looking into it.