Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240324180200.GW4163@brightrain.aerifal.cx>
Date: Sun, 24 Mar 2024 14:02:00 -0400
From: Rich Felker <dalias@...c.org>
To: Alexander Weps <exander77@...me>
Cc: musl@...ts.openwall.com, Daniel Gutson <danielgutson@...il.com>,
	Markus Wichmann <nullplan@....net>
Subject: Re: Broken mktime calculations when crossing DST boundary

On Sun, Mar 24, 2024 at 05:12:35PM +0000, Alexander Weps wrote:
> Adding seconds cannot make time go backwards. If that is how it was
> interpreted, than the interpretation is erroneous.

And subtracting seconds can't make time go forwards, but that's what
would happen with the alternate interpretation you want.

There is fundamentally no way for the interface to read your mind and
know that the time you requested is "move forward from a past valid
normalized time" and not "move backward from a future valid normalized
time".

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.