limited time.gmtime() on 32-bit platforms.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
In Progress
|
Medium
|
Florent Gallaire | ||
Breezy |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
time.gmtime() can't handle date before 1901 and after 2038 on 32-bits platforms.
[flext@web99 tb]$ python2.7 ../BZRR/bzr/bzr commit --commit-time "1900-01-01 00:00:00 +0000"
bzr: ERROR: exceptions.
[...]
File "/home/
return time.strftime(
ValueError: timestamp out of range for platform time_t
bzr 2.8.0dev1 on python 2.7.12 (Linux-
redhat-
[flext@web99 tb]$ python2.7 ../BZRR/bzr/bzr commit --commit-time "2039-01-01 00:00:00 +0000"
bzr: ERROR: exceptions.
[...]
File "/home/
return time.strftime(
ValueError: timestamp out of range for platform time_t
bzr 2.8.0dev1 on python 2.7.12 (Linux-
redhat-
Related branches
- Vincent Ladeuil: Approve
- Richard Wilbur: Approve
-
Diff: 228 lines (+60/-18)9 files modifiedbzrlib/annotate.py (+1/-1)
bzrlib/crash.py (+1/-1)
bzrlib/doc_generate/autodoc_bash_completion.py (+2/-2)
bzrlib/doc_generate/autodoc_man.py (+2/-2)
bzrlib/doc_generate/autodoc_rstx.py (+1/-2)
bzrlib/osutils.py (+15/-4)
bzrlib/tests/blackbox/test_commit.py (+34/-1)
bzrlib/timestamp.py (+1/-5)
doc/en/release-notes/bzr-2.8.txt (+3/-0)
summary: |
- limited time.gmtime() on 32-bits platforms. + limited time.gmtime() on 32-bit platforms. |
Changed in bzr: | |
assignee: | nobody → Florent Gallaire (fgallaire) |
importance: | Undecided → Medium |
milestone: | none → 2.8b1 |
status: | New → In Progress |
Changed in brz: | |
status: | New → Incomplete |
Why is this actually an issue? No revisions in the wild should have been created before 2004 and nothing should currently exist beyond 2017; it will take another 22 years (when these Windows versions are long deprecated) before revisions with those timestamps will be created.