Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 607190 Details for
Bug 851636
dhclient: incorrect time shown in *.leases file
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
add time zone indication in the comment
dhcp-4.2.4-P1-timezone.patch (text/plain), 1.52 KB, created by
Jiri Popelka
on 2012-08-27 12:19:06 UTC
(
hide
)
Description:
add time zone indication in the comment
Filename:
MIME Type:
Creator:
Jiri Popelka
Created:
2012-08-27 12:19:06 UTC
Size:
1.52 KB
patch
obsolete
>diff -up dhcp-4.2.4-P1/common/print.c.timezone dhcp-4.2.4-P1/common/print.c >--- dhcp-4.2.4-P1/common/print.c.timezone 2012-07-13 08:17:54.000000000 +0200 >+++ dhcp-4.2.4-P1/common/print.c 2012-08-27 13:52:47.636776821 +0200 >@@ -1472,10 +1472,10 @@ const char * > print_time(TIME t) > { > static char buf[sizeof("epoch 9223372036854775807; " >- "# Wed Jun 30 21:49:08 2147483647")]; >- static char buf1[sizeof("# Wed Jun 30 21:49:08 2147483647")]; >+ "# Wed Jun 30 21:49:08 2147483647 AZOST")]; >+ static char buf1[sizeof("# Wed Jun 30 21:49:08 2147483647 AZOST")]; > time_t since_epoch; >- /* The string: "6 2147483647/12/31 23:59:60;" >+ /* The string: "6 2147483647/12/31 23:59:60; # UTC" > * is smaller than the other, used to declare the buffer size, so > * we can use one buffer for both. > */ >@@ -1498,7 +1498,7 @@ print_time(TIME t) > if (db_time_format == LOCAL_TIME_FORMAT) { > since_epoch = mktime(localtime(&t)); > if ((strftime(buf1, sizeof(buf1), >- "# %a %b %d %H:%M:%S %Y", >+ "# %a %b %d %H:%M:%S %Y %Z", > localtime(&t)) == 0) || > (snprintf(buf, sizeof(buf), "epoch %lu; %s", > (unsigned long)since_epoch, buf1) >= sizeof(buf))) >@@ -1508,7 +1508,7 @@ print_time(TIME t) > /* No bounds check for the year is necessary - in this case, > * strftime() will run out of space and assert an error. > */ >- if (strftime(buf, sizeof(buf), "%w %Y/%m/%d %H:%M:%S;", >+ if (strftime(buf, sizeof(buf), "%w %Y/%m/%d %H:%M:%S; # UTC", > gmtime(&t)) == 0) > return NULL; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 851636
: 607190