gmtime is not POSIX compliant due to leap seconds

Eitan Adler lists at
Sun May 20 18:06:15 UTC 2018

On 20 May 2018 at 10:18, Garrett Wollman <wollman at> wrote:
> On May 20, 2018 1:08:13 PM EDT, Eitan Adler <lists at> wrote:
>> This means that gmtime ought not to be affected by leap seconds.
> If you are getting leap-second adjustments, then you are using a nonstandard build of the data files with that feature enabled. Don't do that if POSIX behavior is what you want.

Oof. I had WITH_ZONEINFO_LEAPSECONDS_SUPPORT set in src.conf for
reasons I cannot remember.

Eitan Adler

More information about the freebsd-standards mailing list