[erlang-patches] Fix use of "clever" mktime.

Piotr Sikora piotr.sikora@REDACTED
Mon Jul 16 23:58:42 CEST 2012


Fix use of "clever" mktime.

Commit 1eef765 introduced regression (conditional _always_ evaluates
to true) in which erlang:localtime_to_universaltime/2 stopped working
on systems configured with timezone without DST (i.e. UTC) on *BSD
platforms:

1> erlang:localtime_to_universaltime({{2012,1,1},{0,0,0}}, true).
** exception error: bad argument


git fetch git://github.com/PiotrSikora/otp.git fix-clever-mktime

https://github.com/PiotrSikora/otp/compare/fix-clever-mktime
https://github.com/PiotrSikora/otp/compare/fix-clever-mktime.patch


Best regards,
Piotr Sikora < piotr.sikora@REDACTED >



More information about the erlang-patches mailing list