Bug 117821
Summary: | y2038 bugs in gmtime, localtime | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | John G. Myers <jgmyers> | ||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | dbaron, mitr | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i586 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-03-22 17:38:57 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
John G. Myers
2004-03-08 22:58:15 UTC
Created attachment 98387 [details]
Test case
This is a WONTFIX for 32-bit arches, sorry, but I don't think there will be many 32-bit arches out there in 34 years from now. [jakub@hammer obj]$ ./test time = 2038-01-19 03:14:07 time = 2038-01-19 04:14:07 time = 2038-01-19 03:14:08 time = 2038-01-19 04:14:08 works just fine. With the advent of AMD64 and IA32e I think most of the computers out there will be 64-bit already within at most 5 years. If 32-bit platforms are still around in big enough quantities in 2030, this can be certainly reconsidered, but until then it is just a waste of time. There are things, such as CA certificates, mortgage amoritizations, etc. that need to deal with dates 35 or more years into the future. I wouldn't have filed the bug if I hadn't encountered it. It prevents openssl from being able to create a cert with a liftime past 2038. Then openssl needs to use its own timekeeping, it is as simple as that. gmtime/localtime is not an API to work with any time in the history/future. It will not handle pre-1900 dates either and similarly to this, applications which need to work with such dates need to handle it on their own. |