[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tstamp testMagicProperty consistently failing on Windows

On 2018-08-19, Jaikiran Pai wrote:

> The tstamp (antunit) test named "testMagicProperty" has been
> consistently failing (only) on Windows for a while now[1]. Both master
> and 1.9.x branches. The failure looks really odd and something that I
> haven't been able to understand yet. The one interesting bit to this
> failure, based on what I can find in the history, is that it fails only
> on "windows-2016" node(s) but has passed (and still passes) on
> "windows-2012" node(s).

The timezones are different. The machine on which the tests pass is in
UTC, the one where they fail is in "America/Los_Angeles".

100000 seconds after the epoch may still be the first of January in that
timezone if its UTC offset is 4 hours or more before UTC (which it
probably is).

SimpleDateFormat seems to be using local time in some contexts, for
another hint see the discussion in https://github.com/apache/ant/pull/40


To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxx