<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
Hi Juan,<br>
<br>
Thank you for your changes ! <br>
<br>
I am getting married on day 20 Nov, I guess will not be able to put
the necessary attention<br>
level to this subject as I should, at least in the short period.
Sorry about it, I have risen the issue<br>
It should be my duty to follow it closely up to resolution. Also, i
think it is a very important subject.<br>
<br>
In the last days I had some private communications with Bruce and
Dave (in CC), i report<br>
a very short summary here since it might be useful for further
development.<br>
<br>
----- executive summary -------<br>
<br>
We checked the status of the matter in Squeak, which has progressed
in this respect in recent times.<br>
<br>
1] After and experiment made by Bruce on MST/MDT time change we are
confident the code<br>
in Squeak is able keep "the date updated" on Daylight time change,
automatically. GOOD ! <br>
<br>
2] If one changes the time zone manually, Squeak can't detect it.
One must call the primitive<br>
`Time primitiveUpdateTimeZone.` . In my opinion this is much less
important than point [1].<br>
<br>
3] Dave knows very well the new Squeak implementation<br>
<br>
----------------------------------------<br>
<br>
I will try to do some experiments myself as soon as i can !<br>
<br>
<br>
Bye<br>
Nicola<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/9/21 22:19, Juan Vuletich wrote:<br>
</div>
<blockquote type="cite" cite="mid:618AE5F4.9010908@jvuletich.org">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
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" moz-do-not-send="true">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev" moz-do-not-send="true">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich" moz-do-not-send="true">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3" moz-do-not-send="true">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</blockquote>
<br>
</body>
</html>