Mail Archives: djgpp/2017/05/07/03:15:10

X-Authentication-Warning: mail set sender to djgpp-bounces using -f
X-Received: by with SMTP id o64mr26905815ywf.164.1494140961566;
Sun, 07 May 2017 00:09:21 -0700 (PDT)
X-Received: by with SMTP id q79mr1136503ota.11.1494140961512;
Sun, 07 May 2017 00:09:21 -0700 (PDT)
Newsgroups: comp.os.msdos.djgpp
Date: Sun, 7 May 2017 00:09:20 -0700 (PDT)
In-Reply-To: <>
Complaints-To: groups-abuse AT google DOT com
Injection-Info:; posting-host=;
References: <6c031262-a53d-4ede-925d-ef279a2e1286 AT googlegroups DOT com> <590CCAE9 DOT 3090904 AT gmx DOT de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <>
Subject: Re: Bug in timestamp arithmetic
From: "Arrigo Marchiori (ardovm AT yahoo DOT it) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Injection-Date: Sun, 07 May 2017 07:09:21 +0000
Bytes: 2490
Lines: 35
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by id v477F2F3025986
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hello Juan Manue, and thank your for your quick reply.

I would like to add a note:

Il giorno venerdì 5 maggio 2017 20:54:20 UTC+2, Juan Manuel Guerrero ha scritto:
> Am 05.05.2017 15:27, schrieb Arrigo Marchiori:
> > Dear All,
> >
> > I am writing here to report a bug, as I could not do it through the web site.
> I also have usually neither TZ set nor djtzn205 installed and can verify the
> bug described by the poster.  An inspection of ctime.c from the repository
> shows that the implementation has the different bugs described in the post
> leading to random timestamp around 1969-12-24 for my installation.
> IMO, the fix proposed is correct and it solves the problems as explained.

I understood from the comments in DJGPP's ctime.c that the source is from BSD. Therefore, I consulted the correspondant file from the FreeBSD source code, that is contrib/tzcode/localtime.c :

In that file:
 - the stdoffset variable is set explicitly to zero (second modification in the patch) and 
 - the defaulttype attribute is not defined, but its value is calculated every time.

Thank you and best regards,

- Raw text -

  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019