Fix calendar:local_time_to_universal_time_dst/2 bug of return value -1 from mktime

Kenji Rikitake <>
Wed Feb 10 06:13:04 CET 2010

I am struggling to merge FreeBSD port patches into my GitHub repository.
This one is a long-standing fix which is proposed and fixed by
Paul Guyot. I do not claim any credit for this patch.
This patch has been tested for at least a year in FreeBSD port of Erlang (lang/erlang).

git fetch git:// local_to_univ

Patch originally created by Paul Guyot <>
Submitted at the following erlang-bugs article and the attachment containing this patch:

Kenji Rikitake

More information about the erlang-patches mailing list