[erlang-questions] (no subject)

Ahmed Ali <>
Sat May 16 14:16:20 CEST 2009


Hi list,

Can somebody please explain the behaviour of
calendar:local_time_to_universal_time_dst/1 when timezone is set to
UTC (used with ubuntu 8.04 and Erlang R11)? This issue was not
observed when timezone is set to EDT.

In R12, it returns universal time correctly, but return is duplicated
with R11. Please find sample output below.

Regards,

Ahmed

[Erlang R12]:
# erl
Eshell V5.6.4  (abort with ^G)
1> calendar:local_time_to_universal_time_dst({{2009,5,13},{17,57,50}}).
[{{2009,5,13},{13,57,50}}]

[Erlang R11]:
# erl
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0]
[kernel-poll:false]

Eshell V5.5.5  (abort with ^G)
1> calendar:local_time_to_universal_time_dst({{2009,5,13},{17,57,50}}).
[{{2009,5,13},{17,57,50}},{{2009,5,13},{17,57,50}}]



More information about the erlang-questions mailing list