[squeak-dev] Some failing tests in Squeak5.2alpha
David T. Lewis
lewis at mail.msen.com
Wed Jun 13 23:09:44 UTC 2018
On Wed, Jun 13, 2018 at 02:34:10PM +0200, Levente Uzonyi wrote:
>
> On Wed, 13 Jun 2018, Alistair Grant wrote:
>
> >On Wed, 13 Jun 2018 at 14:02, Levente Uzonyi <leves at caesar.elte.hu> wrote:
> >>
> >>On Wed, 13 Jun 2018, Fabio Niephaus wrote:
> >>>
> >>> There might be more, but these tests fail in Squeak5.2alpha:
> >>>
> >>> DateAndTimeLeapTest>>#testAsSeconds
> >>
> >>If you can answer the question "When the Squeak epoch is?", then this can
> >>be fixed.
> >
> >1 Jan 1901.
> >
> >(I haven't looked at the test, I'm battling with file timestamps on
> >Windows in the VM at the moment).
> >
>
> The everlasting debate is about the time zone. Some say it is UTC, others
> say it is whatever time zone you're in. The test is failing, because it
> expects the value for UTC, while the method it uses (#asSeconds) was
> changed to use your current time zone.
>
Putting an end to this kind of endless confusion is the reason that I
implemented UTCDateAndTime for Squeak.
http://wiki.squeak.org/squeak/6197
http://www.squeaksource.com/UTCDateAndTime/
Back when I did this in 2014, I considered it experimental. But after four
years of use, I cannot think of any good reason not to adopt it in trunk.
Maybe we can discuss some time after the 5.2 release.
Dave
More information about the Squeak-dev
mailing list
|