From patchwork Sun Aug 26 20:24:24 2007 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lauri Nurmi X-Patchwork-Id: 12514 Received: from smtp-out-02.utu.fi ([130.232.202.172]) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1IPOfI-0001r3-8l for vdr@linuxtv.org; Sun, 26 Aug 2007 22:24:56 +0200 Received: from endeavour.local (enterprise.yok.utu.fi [130.232.131.31]) by smtp02.mess.utu.fi (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0JNE00GSQE0POIB0@smtp02.mess.utu.fi> for vdr@linuxtv.org; Sun, 26 Aug 2007 23:24:25 +0300 (EEST) Date: Sun, 26 Aug 2007 23:24:24 +0300 From: Lauri Nurmi To: VDR Mailing List Message-id: <1188159865.17585.44.camel@endeavour.local> MIME-version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-2.fc5) Content-type: multipart/mixed; boundary="Boundary_(ID_UaWNTev4SJSKrTA+tZi2iw)" Subject: [vdr] [PATCH] Small fix for short date format X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Aug 2007 20:24:56 -0000 Status: O X-Status: X-Keywords: X-UID: 13943 Hello, The short date format in VDR currently is "mm.yy", while such a date should actually have two periods, i.e. "mm.yy.", for example "26.08.". (That is because both the day and month are ordinal numbers.) The attached patch adds the missing period to DayDateTime() in tools.c. Applies to both 1.4.7 and 1.5.9. Regards, -LN diff -ru clean/vdr-1.5.8/tools.c vdr-1.5.8/tools.c --- clean/vdr-1.5.8/tools.c 2007-08-05 15:18:15.000000000 +0300 +++ vdr-1.5.8/tools.c 2007-08-25 23:56:02.000000000 +0300 @@ -896,7 +896,7 @@ time(&t); struct tm tm_r; tm *tm = localtime_r(&t, &tm_r); - 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); + 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; }