choptastic/qdate_localtime

Error in "Iran" timezone definition

Closed this issue · 1 comments

When calling:

localtime:tz_shift({{2022,11,29},{16,30,0}}, "Iran").

We get a throw {error, wrong_week_day}.

The corresponding rule is:

{"Iran",{"IRST","IRST"},{"IRDT","IRDT"},210,60,undef,{0,0},undef,{0,0}}

Is this expected behavior?

I see that Asia/Tehran has the following entry:

 {"Asia/Tehran",{"IRST","IRST"},{"IRDT","IRDT"},210,60,{3,sat,mar},{0,0},{3,sat,sep},{0,0}},

But then on 21 September 2022 Iran abolished DST.
So we might want to update the timezone db anyway.