there is a subtle bug in wall-time calculations. Asia/Irkutsk times are incorrect.

This commit is contained in:
aj
2010-11-12 01:22:50 -08:00
parent 7985f9e74f
commit 3e77287db6
4 changed files with 63 additions and 42 deletions

View File

@@ -42,6 +42,8 @@ project_next(Rule=#rule{}, Offset, DSTOff, UTCAfter={{AY,_,_},_}) ->
% returns the sorted list of years a rule existed for.
years(#rule{from=From, to=only}) ->
[From];
years(#rule{from=From, to=X}) when X=:=max; X=:=maximum->
[From,9999]; % let's hope this isn't used past year 9999
years(#rule{from=From, to=To}) ->
try lists:seq(From, To)
catch error:function_clause ->