diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-10-19 13:22:24 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-10-19 13:22:24 +0200 |
commit | 6de7f7e8b2233189115fca4dec705e946359516f (patch) | |
tree | 6707bba23513cee66c5bd4a6a73ab7fb8fdfe017 /tools.c | |
parent | 6c41138bdd546c1e833b5172901a98da38f1a849 (diff) | |
download | vdr-6de7f7e8b2233189115fca4dec705e946359516f.tar.gz vdr-6de7f7e8b2233189115fca4dec705e946359516f.tar.bz2 |
Fixed timers starting and ending at unexpected times
Diffstat (limited to 'tools.c')
-rw-r--r-- | tools.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.c 1.49 2001/10/07 15:13:45 kls Exp $ + * $Id: tools.c 1.50 2001/10/19 13:12:45 kls Exp $ */ #include "tools.h" @@ -416,7 +416,8 @@ const char *DayDateTime(time_t t) static char buffer[32]; if (t == 0) time(&t); - tm *tm = localtime(&t); + struct tm tm_r; + tm *tm = localtime_r(&t, &tm_r); int weekday = tm->tm_wday == 0 ? 6 : tm->tm_wday - 1; // we start with monday==0! const char *day = tr("MonTueWedThuFriSatSun"); day += weekday * 3; |