<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Levente,</p>
<p>thanks, it works. I even had read the discussion and somehow
misread that it was about moving from one timezone to another. :-(<br>
</p>
<p>Cheers,</p>
<p><br>
</p>
<p>Herbert<br>
</p>
<br>
<div class="moz-cite-prefix">Am 02.04.2017 um 14:08 schrieb Levente
Uzonyi:<br>
</div>
<blockquote
cite="mid:alpine.DEB.2.02.1704021330590.3065@login03.caesar.elte.hu"
type="cite">Hi Herbert,
<br>
<br>
This issue was discussed[1] here recently. I suggested[2] a VM
change to solve this problem, but the same thing can be done on
the image side too.
<br>
Just change Time class >> #utcMicrosecondClockWithOffset to
be:
<br>
<br>
utcMicrosecondClockWithOffset
<br>
"Answer an array with UTC microseconds since the Smalltalk
epoch and the
<br>
current seconds offset from UTC in the local time zone."
<br>
<br>
| utc currentMinute |
<br>
utc := self utcMicrosecondClock.
<br>
currentMinute := utc // 60000000.
<br>
LastTimeTimeZoneWasUpdated = currentMinute ifFalse: [
<br>
LastTimeTimeZoneWasUpdated := currentMinute.
<br>
TimeZoneOffset := Locale current primTimezone * 60 ].
<br>
^{ utc. TimeZoneOffset }
<br>
<br>
and Time class >> #localMicrosecondClock to be:
<br>
<br>
localMicrosecondClock
<br>
"Answer the local microseconds since the Smalltalk epoch
(January 1st 1901, the start of the 20th century).
<br>
The value is derived from the current UTC wallclock time and
the image's current notion of time zone."
<br>
<br>
| utcMicrosecondClockWithOffset |
<br>
utcMicrosecondClockWithOffset := self
utcMicrosecondClockWithOffset.
<br>
^(utcMicrosecondClockWithOffset at: 2) * 1000000 +
(utcMicrosecondClockWithOffset at: 1)
<br>
<br>
<br>
LastTimeTimeZoneWasUpdated and TimeZoneOffset should be class
variables. They don't have to be initialized.
<br>
<br>
Levente
<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/pipermail/squeak-dev/2017-March/193594.html">http://lists.squeakfoundation.org/pipermail/squeak-dev/2017-March/193594.html</a><br>
[2]
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/pipermail/squeak-dev/2017-March/193638.html">http://lists.squeakfoundation.org/pipermail/squeak-dev/2017-March/193638.html</a><br>
<br>
On Sun, 2 Apr 2017, Herbert König wrote:
<br>
<br>
<blockquote type="cite">Hi all,
<br>
<br>
I have a long running 5.1 image on a Raspi A+ which regularly
waits on a Delay.
<br>
<br>
Raspbian has noticed daylight saving, Squeak not.
<br>
<br>
Is this expected and what can I do with the running image to
make it notice? Except waiting for the monthly crash and restart
:-)
<br>
<br>
<br>
Cheers,
<br>
<br>
Herbert
<br>
<br>
<br>
<br>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>