Submitter | phabricator |
---|---|
Date | Nov. 25, 2019, 8:50 p.m. |
Message ID | <differential-rev-PHID-DREV-o3zbfr3hyahugmamzcf5-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/43520/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/utils/dateutil.py b/mercurial/utils/dateutil.py --- a/mercurial/utils/dateutil.py +++ b/mercurial/utils/dateutil.py @@ -209,6 +209,8 @@ True >>> tz == strtz True + >>> parsedate(b'2000 UTC', formats=extendeddateformats) + (946684800, 0) """ if bias is None: bias = {} @@ -244,7 +246,8 @@ if part[0:1] in b"HMS": b = b"00" else: - b = b"0" + # year, month, and day start from 1 + b = b"1" # this piece is for matching the generic end to today's date n = datestr(now, b"%" + part[0:1])