[squeak-dev] trunk thinks its tomorrow

tim Rowledge tim at rowledge.org
Thu Feb 18 01:35:45 UTC 2016


> On 17-02-2016, at 5:15 PM, David T. Lewis <lewis at mail.msen.com> wrote:
> 

> I will post an update to DataAndTime class>>nowWithOffset that seems to
> me to be the LHTTCPW (least horrible thing that could possibly work).

Ah sorry Dave, you can’t do that (as in http://source.squeak.org/trunk/Kernel-dtl.990.mcz)

The code is working ok if the TZ is set correctly. If I set PST
DateAndTime localTimeZone: (TimeZone offset: -8 hours name: 'Pacific Standard Time' abbreviation: 'PST’).
then
DateAndTime now -> 2016-02-18T01:30:48.40668-08:00
which is correct - the UTC is 8 hrs ahead of my local time.

Now, ‘DateAndTime now asLocal’ seems to me to be wrong since it returns just the same time. And asUTC appears to go the wrong way, showing it to be 9:30 in  the morning


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: BYEBYE: Store in Write-Only Storage




More information about the Squeak-dev mailing list