FreeBSD Bugzilla – Attachment 9956 Details for
Bug 20159
strftime() can't produce ISO8601 format timezone representation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 867 bytes, created by
Phil Pennock
on 2000-07-24 23:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Phil Pennock
Created:
2000-07-24 23:10:01 UTC
Size:
867 bytes
patch
obsolete
>--- /usr/src/lib/libc/stdtime/strftime.c Tue Mar 14 21:54:50 2000 >+++ strftime.c Mon Jul 24 23:54:12 2000 >@@ -388,6 +388,31 @@ > pt = _conv(t->tm_year + TM_YEAR_BASE, "%04d", > pt, ptlim); > continue; >+#ifdef ISO8601_TIMEZONES >+ case 'z': >+ { >+ long offabs; >+ int offhr; >+ int offmin; >+ char offsign[2]; >+ >+ offsign[1] = '\0'; >+ if (t->tm_gmtoff < 0) { >+ *offsign = '-'; >+ offabs = - t->tm_gmtoff; >+ } else { >+ *offsign = '+'; >+ offabs = t->tm_gmtoff; >+ } >+ offhr = offabs / 3600; >+ offmin = (offabs - offhr*3600) / 60; >+ >+ pt = _add(offsign, pt, ptlim); >+ pt = _conv(offhr, "%02d", pt, ptlim); >+ pt = _conv(offmin, "%02d", pt, ptlim); >+ } >+ continue; >+#endif /* defined ISO8601_TIMEZONES */ > case 'Z': > if (t->tm_zone != NULL) > pt = _add(t->tm_zone, pt, ptlim);
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 20159
: 9956