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
Unknown Object (File)
Mon, Nov 3, 3:47 AM
Unknown Object (File)
Sun, Nov 2, 9:58 PM
Unknown Object (File)
Sat, Nov 1, 8:24 PM
Unknown Object (File)
Sat, Nov 1, 5:19 PM
Unknown Object (File)
Mon, Oct 27, 3:11 PM
Unknown Object (File)
Sun, Oct 26, 6:40 PM
Unknown Object (File)
Sun, Oct 26, 6:40 PM
Unknown Object (File)
Sun, Oct 26, 6:39 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