pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46810: erlang:localtime_to_universaltime/2 doesn't work in UTC timezone



>Number:         46810
>Category:       pkg
>Synopsis:       erlang:localtime_to_universaltime/2 doesn't work in UTC 
>timezone
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 17 21:00:00 +0000 2012
>Originator:     Blair Sadewitz
>Release:        6.99.10
>Organization:
>Environment:
NetBSD ludwig 6.99.10 NetBSD 6.99.10 (XEN3_DOMU) #0: Wed Aug 15 17:02:46 UTC 
2012  
builds%b6.netbsd.org@localhost:/home/builds/ab/HEAD/amd64/201208151500Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/XEN3_DOMU
 amd64

>Description:
see:

"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:



Indeed, this is the case.

http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/erlang/patches/patch-erts_emulator_beam_erl_time_sup_c?rev=1.3
>How-To-Repeat:
1> erlang:localtime_to_universaltime({{2012,1,1},{0,0,0}}, true).
** exception error: bad argument"
>Fix:
apply fix.



Home | Main Index | Thread Index | Old Index