Opened 13 years ago

Closed 13 years ago

#27399 closed defect (duplicate)

erlang bug wih converting localtime to utc

Reported by: pokui@… Owned by: bfulgham@…
Priority: High Milestone:
Component: ports Version: 1.9.2
Keywords: timezone utc conversion have_patch Cc:
Port: erlang

Description

Erlang has a bug with converting certain timezones to UTC on certain platforms (notably FreeBSD-like ones). A patch to fix this was written about version R13B but hasn't been incoperated into the mainstrem.

Consider adding the patch at http://www.erlang.org/pipermail/erlang-bugs/attachments/20081101/c1bab4d9/attachment.obj to the list of patches. It fixes the following:

Erlang R14A (erts-5.8) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8  (abort with ^G)
1> httpd_util:rfc1123_date(erlang:localtime()). 
** exception error: bad argument
     in function  erlang:universaltime_to_localtime/1
        called as erlang:universaltime_to_localtime({{1969,12,31},{23,59,59}})
     in call from calendar:local_time_to_universal_time_dst/1
     in call from httpd_util:rfc1123_date/1
2> 

into this:

Erlang R14A (erts-5.8) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8  (abort with ^G)
1> httpd_util:rfc1123_date(erlang:localtime()).
"Sat, 20 Nov 2010 21:23:06 GMT"
2> 

Change History (4)

comment:1 Changed 13 years ago by nerdling (Jeremy Lavergne)

Port: erlang added

comment:2 Changed 13 years ago by nerdling (Jeremy Lavergne)

Owner: changed from macports-tickets@… to bfulgham@…

comment:3 Changed 13 years ago by pokui@…

This is a duplicate (somewhat) of ticket #24544

comment:4 Changed 13 years ago by raimue (Rainer Müller)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.