[squeak-dev] possible bug in DateAndTime localTimeOffset

Chris Cunningham cunningham.cb at gmail.com
Thu Oct 25 18:55:08 UTC 2018


ahhhhhh.  didn't catch that. color me blushed.

On Thu, Oct 25, 2018, 11:25 Chris Muller <asqueaker at gmail.com> wrote:

> I think Eliot was making a 420 / California  joke...
>
> On Thu, Oct 25, 2018 at 1:19 PM Chris Cunningham <cunningham.cb at gmail.com>
> wrote:
>
>> Nope, CA is 7 hours behind UTC - hence the -420.
>> And Google backs me up on this:
>> [image: image.png]
>> Of course, with the current implementation of DateAndTime, where the
>> date/time is stored in local time, the offset is...weird.  You have to
>> subtract the offset to get to UTC.
>> If/when we adopt the UTCDateAndTime package, then the internal
>> represenatation and offset mirrors the rest of the industry, where you add
>> the offset to the internal UTC time to get to the local time.
>>
>> -cbc
>>
>> On Thu, Oct 25, 2018 at 11:11 AM Eliot Miranda <eliot.miranda at gmail.com>
>> wrote:
>>
>>> Hi All,
>>>
>>>     I note that here in California
>>>         (DateAndTime localTimeZone offset asSeconds / 60) rounded = -420
>>> but surely in CA it is +420 ??
>>>
>>> ;-)
>>> _,,,^..^,,,_
>>> best, Eliot
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20181025/6b630ab0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 12648 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20181025/6b630ab0/attachment-0001.png>


More information about the Squeak-dev mailing list