[squeak-dev] possible bug in DateAndTime localTimeOffset

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


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/db5c8cd7/attachment.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/db5c8cd7/attachment.png>


More information about the Squeak-dev mailing list