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:
parent
dda33ecb04
commit
0676448937
@ -935,6 +935,7 @@ Rolf Ahrenberg <rahrenbe@cc.hut.fi>
|
||||
for changing the title of the recording info menu
|
||||
for reporting a bug in handling key macros with keys after @plugin
|
||||
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>
|
||||
for reporting a bug in cutting a recording if there is only a single editing mark
|
||||
|
2
HISTORY
2
HISTORY
@ -4185,3 +4185,5 @@ Video Disk Recorder Revision History
|
||||
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
|
||||
if Setup.UseDolbyDigital is true (suggested by André Weidemann).
|
||||
- Added a leading '0' to the day in the DayDateTime() function (thanks to Rolf
|
||||
Ahrenberg).
|
||||
|
4
tools.c
4
tools.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* 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"
|
||||
@ -625,7 +625,7 @@ cString DayDateTime(time_t t)
|
||||
time(&t);
|
||||
struct tm 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user