From patchwork Mon Mar 21 08:54:23 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Fritz X-Patchwork-Id: 11812 Received: from mout0.freenet.de ([194.97.50.131]) by www.linuxtv.org with esmtp (Exim 4.34) id 1DDIhk-0007B0-O4 for vdr@linuxtv.org; Mon, 21 Mar 2005 09:56:08 +0100 Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout0.freenet.de with esmtpa (Exim 4.51) id 1DDIhr-0000i8-CS for vdr@linuxtv.org; Mon, 21 Mar 2005 09:56:15 +0100 Received: from pd95728be.dip0.t-ipconnect.de ([217.87.40.190] helo=gurke.wofritz.de) by mx0.freenet.de with esmtpa (ID wofritz@freenet.de) (Exim 4.51 #1) id 1DDIhr-00010K-5J for vdr@linuxtv.org; Mon, 21 Mar 2005 09:56:15 +0100 Received: from localhost (localhost [127.0.0.1]) by gurke.wofritz.de (Postfix) with ESMTP id AE86628778 for ; Mon, 21 Mar 2005 09:56:19 +0100 (CET) Received: by gurke.wofritz.de (Postfix, from userid 500) id 1457829361; Mon, 21 Mar 2005 09:55:20 +0100 (CET) To: vdr@linuxtv.org X-Original-To: moderator@gurke.wofritz.de Delivered-To: moderator@gurke.wofritz.de by gurke.wofritz.de (Postfix) with ESMTP id A341D28778 for ; Mon, 21 Mar 2005 09:55:19 +0100 (CET) id 9896329361; Mon, 21 Mar 2005 09:54:26 +0100 (CET) From: Wolfgang Fritz Date: Mon, 21 Mar 2005 09:54:23 +0100 Organization: None Lines: 35 Message-ID: NNTP-Posting-Host: eddie.wofritz.de Mime-Version: 1.0 User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en X-AntiVirus: checked by AntiVir MailGate (version: 2.0.2-8; AVE: 6.30.0.7; VDF: 6.30.0.36; host: gurke) Subject: [vdr] [PATCH] vdr-1.3.23: Show localized date in timer edit menu X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Wolfgang Fritz , Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 08:56:13 -0000 Status: O X-Status: X-Keywords: X-UID: 904 Hello, the attached patch displays a localized date in the timer edit menu instead of the yyyy-mm-dd format. Tested with german locale under SuSE 9.0. Wolfgang Index: menuitems.c =================================================================== --- menuitems.c (Revision 253) +++ menuitems.c (Arbeitskopie) @@ -578,7 +578,7 @@ else if (*value) { struct tm tm_r; localtime_r(value, &tm_r); - strftime(buf, DATEBUFFERSIZE, "%Y-%m-%d ", &tm_r); + strftime(buf, DATEBUFFERSIZE, "%x ", &tm_r); strcat(buf, WeekDayName(tm_r.tm_wday)); } else