diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-15 14:35:14 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-15 14:35:14 +0100 |
commit | 0676448937e9f851d34380904a249b15bf97e14c (patch) | |
tree | 1f1bc82afa3f9f888412e092aa19e4e662e9a072 /tools.c | |
parent | dda33ecb043a77fc269c768e6b72dcb7a47c3cf0 (diff) | |
download | vdr-0676448937e9f851d34380904a249b15bf97e14c.tar.gz vdr-0676448937e9f851d34380904a249b15bf97e14c.tar.bz2 |
Added a leading '0' to the day in the DayDateTime() function
Diffstat (limited to 'tools.c')
-rw-r--r-- | tools.c | 4 |
1 files changed, 2 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.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; } |