Mercurial > hg
comparison tests/test-parse-date.t @ 28441:79d8e7926a04
test-parse-date: defines explicit start/end dates for DST
Prior to this patch, DST times where tested by specifying a custom TZ
environment variable that didn't defined DST transition times.
Due to a bug in glibc, the test fail on 32bits platforms that use timezone
files generated by zic from tzcode >= 2014c (glibc >= 2.20).
See https://sourceware.org/bugzilla/show_bug.cgi?id=19738
By defining explicit transition times for DST in the TZ environment variable,
the test is now independant to how the system guess those transition times.
author | Sébastien Brissaud <sebastien@brissaud.name> |
---|---|
date | Sun, 14 Feb 2016 18:18:57 +0100 |
parents | 3cbb5bf4035d |
children | 491ee264b9f6 |
comparison
equal
deleted
inserted
replaced
28440:855d9b2eea67 | 28441:79d8e7926a04 |
---|---|
26 abort: impossible time zone offset: 1400000 | 26 abort: impossible time zone offset: 1400000 |
27 [255] | 27 [255] |
28 | 28 |
29 Check with local timezone other than GMT and with DST | 29 Check with local timezone other than GMT and with DST |
30 | 30 |
31 $ TZ="PST+8PDT" | 31 $ TZ="PST+8PDT+7,M4.1.0/02:00:00,M10.5.0/02:00:00" |
32 $ export TZ | 32 $ export TZ |
33 | 33 |
34 PST=UTC-8 / PDT=UTC-7 | 34 PST=UTC-8 / PDT=UTC-7 |
35 Summer time begins on April's first Sunday at 2:00am, | |
36 and ends on October's last Sunday at 2:00am. | |
35 | 37 |
36 $ hg debugrebuildstate | 38 $ hg debugrebuildstate |
37 $ echo "a" > a | 39 $ echo "a" > a |
38 $ hg ci -d "2006-07-15 13:30" -m "summer@UTC-7" | 40 $ hg ci -d "2006-07-15 13:30" -m "summer@UTC-7" |
39 $ hg debugrebuildstate | 41 $ hg debugrebuildstate |