<div dir="ltr"><div style>Hi, </div><div><br></div><div style>Erlang newbie here ...</div><div><br></div>I have two Debian linux VPSs, both largely identical except for Erlang versions, running in Virtuozzo containers with the same provider.<div>
<br></div><div style>On the VPS running Erlang R14B04, erlang:now() and erlang:localtime() return identical results (as they do on my local machine, and some others we've tried):</div><div style><div>1> {calendar:now_to_local_time(erlang:now()), erlang:localtime()}.</div>
<div>{{{2013,4,5},{22,12,57}},{{2013,4,5},{22,12,57}}}</div><div><br></div><div style>On the other VPS however, running Erlang R15B01, I get different results:</div><div style><div>1> {calendar:now_to_local_time(erlang:now()), erlang:localtime()}. </div>
<div>{{{2013,4,5},{22,35,29}},{{2013,4,5},{22,30,29}}}</div></div><div style><br></div><div style>As background, I'm running Zotonic on both VPSs; on the R15B01 machine Zotonic is being regularly restarted by the heart process -- every 5 minutes. Have been talking to the Zotonic people about this, and in the absence of a better explanation, we're thinking this time difference might be the cause. </div>
<div style><br></div><div style>Anyway, logging here as the difference seems like a bug in Erlang.</div><div style><br></div><div style>- Simon </div><div style><br></div><div style><br></div></div></div>