Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <pDyzYMHSLq-D8tQlIvPUwhexgflaJeclixKPsj5R8hiAh9q-N-vEcuJE3Uo_rEe7zi5RSW_BJLjNR764tBlhdD-XIhqlSC9-arCpBmJaYsA=@pm.me>
Date: Sun, 24 Mar 2024 19:05:54 +0000
From: Alexander Weps <exander77@...me>
To: musl@...ts.openwall.com
Subject: Re: Broken mktime calculations when crossing DST boundary

Provide struct tm that was passed as an argument.

AW

On Sunday, March 24th, 2024 at 20:01, Joakim Sindholt <opensource@...sha.com> wrote:

> On Sun, 24 Mar 2024 18:36:40 +0000, Alexander Weps exander77@...me wrote:
>
> > But there cannot be a case where you have normalized time add
> > something, normalize and create normalized time that is lower and vice
> > versa.
>
>
> I'm curious. How do you imagine mktime, which takes only 1 parameter and
> has no memory, deduces that to get the presently invalid 02:00:00
> timestamp it's looking at you added 1 second to a valid 01:59:59
> timestamp rather than say, subtracting 1 hour from a valid 03:00:00
> timestamp?

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.