[erlang-questions] Interesting issue...

Patrik Nyblom pan@REDACTED
Fri Jan 25 19:16:18 CET 2013


Hi!
On 01/25/2013 05:23 PM, Pierre Fenoll wrote:
> Tried it on R15B03 on my MacBook Air (Indochina Time) and got no 
> exception.
> The issue cannot be reproduced on R15B03.
>
Great, then I close the issue, as I cannot reproduce it in any timezone 
lacking DST in recent releases. It seems to have been fixed by a patch 
mending some general issues with time on BSD.

Thanks,
/Patrik
> On 25 January 2013 17:10, Patrik Nyblom <pan@REDACTED 
> <mailto:pan@REDACTED>> wrote:
>
>     Hi!
>
>     This ought to be fixed already in R15B03, can you please verify
>     that it's not present there? I can only reproduce it in R15B01 and
>     prior releases.
>
>     Cheers,
>     /Patrik
>
>
>     On 01/15/2013 05:58 PM, Bryan Hughes wrote:
>>     Hi Everyone,
>>
>>     I already submitted this to erlang-bugs@REDACTED
>>     <mailto:erlang-bugs@REDACTED>, but figured others might be
>>     interested.  I found an interesting issue while traveling and
>>     working through Thailand.  I have been able to reproduce it on my
>>     MacBook Pro using R15B01, built from source.
>>
>>     1. Set your date to Indochina Time.
>>     2. In the shell, try executing:
>>     calendar:local_time_to_universal_time_dst({{2012,12,3},{8,48,42}}).
>>
>>     Here is the exception that I am getting.  Note that the date is a
>>     validate datetime.
>>
>>     Eshell V5.9.1 (abort with ^G)
>>     1>
>>     calendar:local_time_to_universal_time_dst({{2012,12,3},{8,48,42}}).
>>     ** exception error: bad argument
>>          in function erlang:localtime_to_universaltime/2
>>             called as
>>     erlang:localtime_to_universaltime({{2012,12,3},{8,48,42}},true)
>>          in call from calendar:local_time_to_universal_time_dst/1
>>     (calendar.erl, line 282)
>>
>>     When I set my date back to Pacific time, it works without any
>>     problem -- you can switch it back and forth while in the shell
>>     and either get the exception, or the correct output.
>>
>>     I was able to isolate it to function the bif.c function,
>>     unfortunately my environment is not really set up to debug the
>>     erlang runtime.
>>
>>         BIF_RETTYPE localtime_to_universaltime_2(BIF_ALIST_2);
>>
>>     Cheers,
>>     Bryan
>>
>>     -- 
>>
>>     Bryan Hughes
>>     CTO and Founder / *Go Factory*
>>     http://www.go-factory.net
>>
>>
>>
>>
>>     _______________________________________________
>>     erlang-questions mailing list
>>     erlang-questions@REDACTED  <mailto:erlang-questions@REDACTED>
>>     http://erlang.org/mailman/listinfo/erlang-questions
>
>
>     _______________________________________________
>     erlang-questions mailing list
>     erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>     http://erlang.org/mailman/listinfo/erlang-questions
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130125/1fef05fa/attachment.htm>


More information about the erlang-questions mailing list