[erlang-bugs] leap-second-enabled FreeBSD doesn't work right with R12B4 erts/emulator/beam/erl_time_sup.c; correction patch included
Sun Sep 14 05:12:10 CEST 2008
In the message <>
dated Sat, Sep 13, 2008 at 08:03:30PM -0700,
Matthew Dempsky <> writes:
> > Should I rather do this using timegm(3) and throw away
> > the rather naive computation algorithm in univ_to_local()?
> > (Note that this is not necessarily portable either)
> mktime(3) is defined by POSIX.
mktime() certainly is, but timegm() isn't, AFAIK.
An example implementation in the following URL will not be thread-safe,
due to the usage of getenv() and setenv().
BTW local_to_univ() in erl_time_sup.c uses mktime(), and I see no
problem with it.
More information about the erlang-bugs