1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Added a leading '0' to the day in the DayDateTime() function

This commit is contained in:
Klaus Schmidinger 2006-01-15 14:35:14 +01:00
parent dda33ecb04
commit 0676448937
3 changed files with 5 additions and 2 deletions

View File

@ -935,6 +935,7 @@ Rolf Ahrenberg <rahrenbe@cc.hut.fi>
for changing the title of the recording info menu for changing the title of the recording info menu
for reporting a bug in handling key macros with keys after @plugin for reporting a bug in handling key macros with keys after @plugin
for adding compiler options "-fPIC -g" to all plugins for adding compiler options "-fPIC -g" to all plugins
for adding a leading '0' to the day in the DayDateTime() function
Ralf Klueber <ralf.klueber@vodafone.com> Ralf Klueber <ralf.klueber@vodafone.com>
for reporting a bug in cutting a recording if there is only a single editing mark for reporting a bug in cutting a recording if there is only a single editing mark

View File

@ -4185,3 +4185,5 @@ Video Disk Recorder Revision History
closed in which a timer has been modified, which speeds up closing submenus. closed in which a timer has been modified, which speeds up closing submenus.
- Now only writing Dolby Digital tracks into the 'info.vdr' file of a recording - Now only writing Dolby Digital tracks into the 'info.vdr' file of a recording
if Setup.UseDolbyDigital is true (suggested by André Weidemann). if Setup.UseDolbyDigital is true (suggested by André Weidemann).
- Added a leading '0' to the day in the DayDateTime() function (thanks to Rolf
Ahrenberg).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: tools.c 1.109 2006/01/08 11:40:35 kls Exp $ * $Id: tools.c 1.110 2006/01/15 14:31:45 kls Exp $
*/ */
#include "tools.h" #include "tools.h"
@ -625,7 +625,7 @@ cString DayDateTime(time_t t)
time(&t); time(&t);
struct tm tm_r; struct tm tm_r;
tm *tm = localtime_r(&t, &tm_r); tm *tm = localtime_r(&t, &tm_r);
snprintf(buffer, sizeof(buffer), "%s %2d.%02d %02d:%02d", *WeekDayName(tm->tm_wday), tm->tm_mday, tm->tm_mon + 1, tm->tm_hour, tm->tm_min); snprintf(buffer, sizeof(buffer), "%s %02d.%02d %02d:%02d", *WeekDayName(tm->tm_wday), tm->tm_mday, tm->tm_mon + 1, tm->tm_hour, tm->tm_min);
return buffer; return buffer;
} }