Page MenuHomeFreeBSD

Update strptime to accept ISO8601 timezone of "Z"
ClosedPublic

Authored by gordon on Oct 14 2025, 12:35 PM.
Tags
None
Referenced Files
F154925846: D53083.diff
Thu, Apr 30, 2:36 AM
F154897776: D53083.id.diff
Wed, Apr 29, 9:10 PM
Unknown Object (File)
Mon, Apr 27, 10:36 PM
Unknown Object (File)
Sat, Apr 25, 8:40 PM
Unknown Object (File)
Sun, Apr 19, 5:16 PM
Unknown Object (File)
Wed, Apr 15, 8:12 AM
Unknown Object (File)
Sun, Apr 12, 10:25 PM
Unknown Object (File)
Mon, Apr 6, 4:18 PM
Subscribers

Details

Summary

strptime doesn't currently accept Z as a valid timezone setting. Per ISO8601, the construct to designate UTC time is to add "Z" as the TZ designation. Add support for Z and while we are at it, document the fact we also accept UTC in the manpage.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable