[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#22788: marked as done (libc6: bug in mktime())



Your message dated Fri, 17 Sep 1999 12:40:05 -0700
with message-id <v04205523b408494f9f85@[206.163.71.146]>
and subject line Appears fixed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 23 May 1998 23:23:51 +0000
Received: (qmail 222 invoked from network); 23 May 1998 23:23:49 -0000
Received: from mem-tn1-21.ix.netcom.com (quango@205.184.141.53)
  by debian.novare.net with SMTP; 23 May 1998 23:23:49 -0000
Received: (from quango@localhost)
	by mem-tn1-21.ix.netcom.com (8.8.8/8.8.8/Debian/GNU) id SAA32709;
	Sat, 23 May 1998 18:23:44 -0500
Date: Sat, 23 May 1998 18:23:44 -0500
Message-Id: <199805232323.SAA32709@mem-tn1-21.ix.netcom.com>
From: Chris Lawrence <quango@ix.netcom.com>
Subject: libc6: bug in mktime()
To: submit@bugs.debian.org
X-Mailer: bug 3.1.5

Package: libc6
Version: 2.0.7pre3-1

Example program:

#include <time.h>
#include <stdio.h>

int main()
{
   struct tm *t1, t2;
   time_t time1, time2, t;
   
   putenv("TZ=EST5EDT");
   tzset();
   time(&t);
   t1 = localtime(&t);
   t2 = *t1;
   t2.tm_isdst = 1 - t2.tm_isdst;
   time1 = mktime(t1);
   time2 = mktime(&t2);
   
   printf("t = %d  time1 = %d  time2 = %d\n", t, time1, time2);
   return;
}

time2 should be time1 + 3600 seconds during daylight savings time in Eastern
time, and should be time1 - 3600 seconds during standard time.

Output using libc6 (bug present):
t = 895965466  time1 = 895965466  time2 = 895965466

Output using SunOS libc (SunOS 5.6)
t = 895965466  time1 = 895965466  time2 = 895969066

-- System Information
Debian Release: 2.0 (frozen)
Kernel Version: Linux mem-tn1-21.ix.netcom.com 2.1.99 #1 Sat May 2 15:42:57 CDT 1998 i486 unknown

Versions of the packages libc6 depends on:
ii  ldso            1.9.8-1        The Linux dynamic linker, library and utilit


Reply to: