diff --git a/tests/test-parse-date b/tests/test-parse-date --- a/tests/test-parse-date +++ b/tests/test-parse-date @@ -44,6 +44,10 @@ 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" +# Test 12-hours times +hg debugdate "2006-02-01 1:00:30PM +0000" +hg debugdate "1:00:30PM" > /dev/null || echo 'failed' + #Test date formats with '>' or '<' accompanied by space characters hg log -d '>' --template '{date|date}\n' hg log -d '<' hg log -d '>' --template '{date|date}\n' diff --git a/tests/test-parse-date.out b/tests/test-parse-date.out --- a/tests/test-parse-date.out +++ b/tests/test-parse-date.out @@ -34,6 +34,8 @@ internal: 999967600 -16200 standard: Sat Sep 08 21:16:40 2001 +0430 internal: 1000000000 16200 standard: Sat Sep 08 21:16:40 2001 -0430 +internal: 1138798830 0 +standard: Wed Feb 01 13:00:30 2006 +0000 Sun Jan 15 13:30:00 2006 +0500 Sun Jan 15 13:30:00 2006 -0800 Sat Jul 15 13:30:00 2006 +0500