Subject: pkg/12493: nxtvepg doesn't work with daylight saving times
To: None <gnats-bugs@gnats.netbsd.org>
From: Mario Kemper <magick@bundy.zhadum.de>
List: netbsd-bugs
Date: 03/28/2001 18:14:12
>Number: 12493
>Category: pkg
>Synopsis: nxtvepg doesn't work with daylight saving times
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 28 08:15:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Mario Kemper
>Release: NetBSD-current
>Organization:
Mario Kemper
magick@bundy.zhadum.de
>Environment:
System: NetBSD bundy 1.5T NetBSD 1.5T (BUNDY) #9: Sun Mar 25 15:40:55 CEST 2001 root@bundy:/usr/netbsd-src/src/sys/arch/i386/compile/BUNDY i386
Architecture: i386
Machine: i386
>Description:
nxtvepg doesn't work very well when daylight saving is active. All program
entries are one hour late.
>How-To-Repeat:
Use nxtvepg and wonder why Buffy starts at 21:15 and not at 20:15 as usual.
>Fix:
add the following patch as patch-af
-----
$NetBSD$
--- epgdb/epgblock.c.orig Wed Mar 28 18:05:34 2001
+++ epgdb/epgblock.c
@@ -210,7 +210,7 @@
#ifndef __NetBSD__
*pStartTime = mktime(&tm) - timezone + 60*60 * tm.tm_isdst;
#else
- *pStartTime = mktime(&tm) + tm.tm_gmtoff + 60*60 * tm.tm_isdst;
+ *pStartTime = mktime(&tm) + tm.tm_gmtoff;
#endif
*pStopTime = *pStartTime + (stopMoD - startMoD) * 60;
-----
Patch is already sent to the author.
>Release-Note:
>Audit-Trail:
>Unformatted: