Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147320614
D53083.1782903038.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
889 B
Referenced Files
None
Subscribers
None
D53083.1782903038.diff
View Options
diff --git a/lib/libc/stdtime/strptime.3 b/lib/libc/stdtime/strptime.3
--- a/lib/libc/stdtime/strptime.3
+++ b/lib/libc/stdtime/strptime.3
@@ -171,7 +171,7 @@
The
.Fa %Z
format specifier only accepts time zone abbreviations of the local time zone,
-or the value "GMT".
+and the values "GMT", "UTC", or "Z".
This limitation is because of ambiguity due to of the over loading of time
zone abbreviations.
One such example is
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -546,7 +546,8 @@
zonestr[cp - buf] = '\0';
tzset();
if (0 == strcmp(zonestr, "GMT") ||
- 0 == strcmp(zonestr, "UTC")) {
+ 0 == strcmp(zonestr, "UTC") ||
+ 0 == strcmp(zonestr, "Z")) {
*GMTp = 1;
} else if (0 == strcmp(zonestr, tzname[0])) {
tm->tm_isdst = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 1, 10:50 AM (8 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28997701
Default Alt Text
D53083.1782903038.diff (889 B)
Attached To
Mode
D53083: Update strptime to accept ISO8601 timezone of "Z"
Attached
Detach File
Event Timeline
Log In to Comment