<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
After comments from Gerald (below) and Dave (at the opensmalltalk-vm
issue you opened), this is my take.<br>
<br>
This touches a rather basic area of the system, so any bug could
affect a lot of code. Folks, please, review.<br>
<br>
Thanks,<br>
<br>
On 11/3/2021 1:08 PM, Nicola Mingotti via Cuis-dev wrote:
<blockquote
cite="mid:026c85bb-8524-da32-a191-4e8b5649d232@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<br>
I put it here:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/602">https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/602</a><br>
<br>
bye<br>
Nicola<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/3/21 16:51, Nicola Mingotti
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:a07a47d5-9c0f-0d5c-2bbc-479b6c89bbfc@gmail.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<br>
<font size="4"><font face="monospace">Hi Gerald ! <br>
<br>
thank you for looking into it !<br>
<br>
for me this is still too much above my head, I have <br>
not tweaked the VM up to now, and this seems a central
subject<br>
that should be taken care by somebody who understands well<br>
the possible consequences of a change.<br>
<br>
I am going to forward the problem to the vm mailing list.<br>
<br>
bye<br>
Nicola<br>
<br>
<br>
<br>
<br>
</font></font><br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/3/21 12:05, Gerald Klix
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5e6701a6-7039-4729-d033-d3d77a95ef61@klix.ch">Nicola,
<br>
<br>
If you look at <br>
<br>
<a class="moz-txt-link-freetext"
href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/634e4e3c8556a72d54f43beefc3069c60e594a21/platforms/unix/vm/sqUnixHeartbeat.c#L139"
moz-do-not-send="true">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/634e4e3c8556a72d54f43beefc3069c60e594a21/platforms/unix/vm/sqUnixHeartbeat.c#L139</a>
<br>
<br>
you see that "vmGMTOffset" is added to the new time. <br>
"vmGMTOffset" is updated here: <br>
<br>
<a class="moz-txt-link-freetext"
href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/634e4e3c8556a72d54f43beefc3069c60e594a21/platforms/unix/vm/sqUnixHeartbeat.c#L150"
moz-do-not-send="true">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/634e4e3c8556a72d54f43beefc3069c60e594a21/platforms/unix/vm/sqUnixHeartbeat.c#L150</a>
<br>
<br>
which is only called during VM initialization: <br>
<br>
<a class="moz-txt-link-freetext"
href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/634e4e3c8556a72d54f43beefc3069c60e594a21/platforms/unix/vm/sqUnixHeartbeat.c#L273"
moz-do-not-send="true">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/634e4e3c8556a72d54f43beefc3069c60e594a21/platforms/unix/vm/sqUnixHeartbeat.c#L273</a>
<br>
<br>
<br>
All this is only an educated guess. <br>
<br>
<br>
HTH, Gerald <br>
<br>
<br>
PS: This is really nasty, it may also ignore leap seconds: <br>
<br>
<a class="moz-txt-link-freetext"
href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/634e4e3c8556a72d54f43beefc3069c60e594a21/platforms/unix/vm/sqUnixHeartbeat.c#L135"
moz-do-not-send="true">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/634e4e3c8556a72d54f43beefc3069c60e594a21/platforms/unix/vm/sqUnixHeartbeat.c#L135</a>
<br>
<br>
<br>
On 11/3/21 10:56 AM, Nicola Mingotti via Cuis-dev wrote: <br>
<blockquote type="cite"> <br>
Hi guys, <br>
<br>
I report you what i discovered this morning. <br>
<br>
. I have 2 services running in Cuis in 2 independent
Linux/Debian servers. <br>
<br>
. In weekend in Italy we changed time from CEST to CET <br>
<br>
. The OSes changed time correctly <br>
<br>
. But Cuis services are 1 hour forward !?!? <br>
<br>
. If i run a fresh new Cuis now in my laptop (Linux/debian
vm), I see it has the correct time, corresponding to the OS
time <br>
<br>
. I did not change my localTimeZone in Cuis, in any machine.
It is acceptable for me it says UTC <br>
even if it is actually localtime. <br>
<br>
. Seeing 'DateAndTime now' I discovered that Cuis by default
uses primLocalMicrosecondClock, so it should <br>
always use the OS local clock and think it is in the UTC
timezone. But, it is not doing <br>
so on images that were started some days ago (max 20). It
does so on new run images. <br>
<br>
I don't know well how to fix this. Maybe some time config is
made when Cuis starts up? <br>
It seems it is remembering the time when it was stared. <br>
<br>
<br>
EXTRA. NOT IMPORTANT AS THE PREVIOUS. <br>
If there are some changes to make I have a suggestion for
improvement. <br>
Could we set localTimeZone to "system", or "local" ? At
present we are reading localTime from the OS <br>
and setting to UTC. Which is a bit confusing. <br>
<br>
bye <br>
Nicola <br>
<br>
<br>
<br>
<br>
</blockquote>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</body>
</html>