Time and system suspend

Carlo Bertoldi <>
Thu Mar 24 14:25:33 CET 2011

Hi, I think I've found a bug.
Version I'm using: Erlang R13B03 (erts-5.7.4) [source] [smp:2:2]
[rq:2] [async-threads:0] [hipe] [kernel-poll:false]
on Linux.

Steps to reproduce the problem:
open an Erlang shell,
calendar:now_to_local_time(erlang:now()).          It returns the correct time

Suspend the computer without closing the erlang shell.
Take a nap ;)
Wake up the computer.

Now I can tell when I went to sleep, because the time printed is the
time at the moment of the suspension, plus the time
passed since the wake up. Please note that the system clock is fine.
To double check, I quit the erl shell, than fired it up again, and
then the time displayed was correct.

 Carlo Bertoldi

È molto più bello sapere qualcosa di tutto, che sapere tutto di una cosa.

Blaise Pascal

More information about the erlang-bugs mailing list