<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Everyone,<br>
<br>
I already submitted this to <a class="moz-txt-link-abbreviated" href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a>, 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. <br>
<br>
1. Set your date to Indochina Time.<br>
2. In the shell, try executing:
calendar:local_time_to_universal_time_dst({{2012,12,3},{8,48,42}}).<br>
<br>
Here is the exception that I am getting. Note that the date is a
validate datetime.<br>
<br>
Eshell V5.9.1 (abort with ^G)<br>
1>
calendar:local_time_to_universal_time_dst({{2012,12,3},{8,48,42}}).<br>
** exception error: bad argument<br>
in function erlang:localtime_to_universaltime/2<br>
called as
erlang:localtime_to_universaltime({{2012,12,3},{8,48,42}},true)<br>
in call from calendar:local_time_to_universal_time_dst/1
(calendar.erl, line 282)<br>
<br>
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.<br>
<br>
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.<br>
<br>
BIF_RETTYPE localtime_to_universaltime_2(BIF_ALIST_2);<br>
<br>
Cheers,<br>
Bryan<br>
<br>
<div class="moz-signature">-- <br>
<p style="font-size:12px">
Bryan Hughes<br>
CTO and Founder / <b>Go Factory</b><br>
<a class="moz-txt-link-freetext" href="http://www.go-factory.net">http://www.go-factory.net</a><br>
<br>
</p>
<p><br>
</p>
</div>
</body>
</html>