From 33dcb2d1f11a93296b53191dbcc3bae525722e03 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 3 Jan 2010 19:11:03 +0000 Subject: [PATCH] add weekday to date git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@144 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/7a2b94b3d98a5d1a74d73a890d482bbd5fdc55bb Author: Jacek Jendrzej Date: 2010-01-03 (Sun, 03 Jan 2010) ------------------ This commit was generated by Migit --- src/gui/epgview.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index 71af0a2cd..3805fba07 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -906,8 +906,10 @@ void CEpgData::GetEPGData(const t_channel_id channel_id, unsigned long long id, } struct tm *pStartZeit = localtime(&(epgData.epg_times).startzeit); - char temp[11]; - strftime( temp, sizeof(temp), "%d.%m.%Y", pStartZeit); + char temp[30]={0}; + int l = 0; + l = snprintf(temp, sizeof(temp),"%s.",g_Locale->getText(CLocaleManager::getWeekday(pStartZeit))); + strftime( temp+l, sizeof(temp)-l,"%d.%m.%Y", pStartZeit); epg_date= temp; strftime( temp, sizeof(temp), "%H:%M", pStartZeit); epg_start= temp;