[MacPorts] #27399: erlang bug wih converting localtime to utc

MacPorts noreply at macports.org
Sat Nov 20 13:45:59 PST 2010


#27399: erlang bug wih converting localtime to utc
------------------------------------------------+---------------------------
 Reporter:  pokui@…                             |       Owner:  macports-tickets@…                   
     Type:  defect                              |      Status:  new                                  
 Priority:  High                                |   Milestone:                                       
Component:  ports                               |     Version:  1.9.2                                
 Keywords:  timezone utc conversion have_patch  |        Port:                                       
------------------------------------------------+---------------------------
 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>

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/27399>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list