Bug 851636
| Summary: | dhclient: incorrect time shown in *.leases file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mr-4 <mr.dash.four> | ||||
| Component: | dhcp | Assignee: | Jiri Popelka <jpopelka> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 17 | CC: | jpopelka, thozza | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-08-27 12:41:50 UTC | Type: | Bug | ||||
| 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
Mr-4
2012-08-24 14:27:56 UTC
dhclient.conf(5) says they are in UTC: " Dates are specified in one of two ways. The software will output times in these two formats depending on if the db-time-format configuration parameter has been set to default or local. db-time-format [ default | local ] ; The db-time-format option determines which of two output methods are used for printing times in leases files. The default format provides day-and-time in UTC, whereas local uses a seconds-since-epoch to store the time value, and helpfully places a local timezone time in a comment on the same line. " Does that change anything ? (/me has never enough understood this time zones stuff) Right, so the default format is in UTC (that's GMT+0 for you), which is correct, though there is no indication in the actual lease file that UTC is used. Maybe the lease file could be amended to show "UTC" instead of showing nothing and confusing the hell out of me and everyone else. I haven't tried the "local" format to see whether it accounts for proper daylight savings (will do that in a day or two) and will report back... I've had time to investigate this further and if the "local" format is used, the time in the comment field is correct, though the time zone (BST/GMT etc) is still missing - it shows something like "expire epoch 1346190295; # Tue Aug 28 22:44:55 2012". In conclusion, my suggestion would be for the correct time zone used to be added in both formats to avoid confusion - in the first format UTC is used, in the second the current time zone is used, though in both cases that is not clearly and immediately visible for someone who looks at that file. Including something like: expire 1 2012/08/28 21:44:55 UTC; # format 1 expire epoch 1346190295; # Tue Aug 28 22:44:55 2012 BST would present sufficient clarity, I think. Created attachment 607190 [details]
add time zone indication in the comment
The change is easy and I'll send the patch upstream.
I won't apply this in Fedora because as I understand it it's not a bug, just a
feature request and we already have had enough patches deviating us from upstream.
Reported upstream as [ISC-Bugs #30780]. I'll post a reply here if there's any. Closing. |