Mercurial > public > mercurial-scm > hg
diff tests/test-parse-date @ 6236:ad6b123de1c7
Add tests for the fixes to issue1014 (fractional timezones)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 12 Mar 2008 22:20:10 +0100 |
parents | e5c9a084ffe3 |
children | 8c6f823efcc9 |
line wrap: on
line diff
--- a/tests/test-parse-date Wed Mar 12 09:04:20 2008 +0100 +++ b/tests/test-parse-date Wed Mar 12 22:20:10 2008 +0100 @@ -32,3 +32,14 @@ echo "d" > a hg ci -d "2006-01-15 13:30 +0500" -m "winter@UTC+5" hg log --template '{date|date}\n' + +# Test issue1014 (fractional timezones) +hg debugdate "1000000000 -16200" # 0430 +hg debugdate "1000000000 -15300" # 0415 +hg debugdate "1000000000 -14400" # 0400 +hg debugdate "1000000000 0" # GMT +hg debugdate "1000000000 14400" # -0400 +hg debugdate "1000000000 15300" # -0415 +hg debugdate "1000000000 16200" # -0430 +hg debugdate "Sat Sep 08 21:16:40 2001 +0430" +hg debugdate "Sat Sep 08 21:16:40 2001 -0430"