summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-03-31 09:39:25 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-03-31 09:39:25 +0200
commit5d997d462234024c7ab97c272eda078dfc83ced0 (patch)
tree571b828168ec780575529ac0fa19a05bb635d3c1
parenta270907cf575b4dfe05432fc214624c105b9071a (diff)
downloadvdr-5d997d462234024c7ab97c272eda078dfc83ced0.tar.gz
vdr-5d997d462234024c7ab97c272eda078dfc83ced0.tar.bz2
Fixed a problem with Daylight Saving Time
-rw-r--r--HISTORY2
-rw-r--r--recording.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index a888e9ba..7102c988 100644
--- a/HISTORY
+++ b/HISTORY
@@ -432,3 +432,5 @@ Video Disk Recorder Revision History
- Fixed setting system time from transponders.
- Fixed a segfault in the Schedule menu in case there is no EPG information.
- The 'runvdr' script now kills any leftover vdr threads before restarting it.
+- Fixed a problem with Daylight Saving Time when displaying the times of
+ recordings.
diff --git a/recording.c b/recording.c
index d6e5a333..fc0daa57 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.28 2001/02/18 16:14:05 kls Exp $
+ * $Id: recording.c 1.29 2001/03/31 09:38:30 kls Exp $
*/
#define _GNU_SOURCE
@@ -206,6 +206,7 @@ cRecording::cRecording(const char *FileName)
if (p) {
time_t now = time(NULL);
struct tm t = *localtime(&now); // this initializes the time zone in 't'
+ t.tm_isdst = -1; // makes sure mktime() will determine the correct dst setting
if (7 == sscanf(p + 1, DATAFORMAT, &t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, &t.tm_min, &priority, &lifetime)) {
t.tm_year -= 1900;
t.tm_mon--;