From e806ce66c09209ed2659df4342fb80a6e99f9b68 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Thu, 3 May 2007 08:44:42 +0000 Subject: - search timers now display start/stop in common time format --- epgsearch.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'epgsearch.cpp') diff --git a/epgsearch.cpp b/epgsearch.cpp index 039fe89..368e485 100644 --- a/epgsearch.cpp +++ b/epgsearch.cpp @@ -269,12 +269,14 @@ void SearchTimer::ParseBlacklist( string const& data ) string SearchTimer::StartTimeFormatted() { - return ZeroPad((StartTime() / 100 ) % 100) + ":" + ZeroPad(StartTime() % 100); + time_t start = cTimer::SetTime(time(NULL), (((StartTime() / 100 ) % 100) * 60 * 60) + (StartTime() % 100 * 60)); + return FormatDateTime(tr("%I:%M %p"), start); } string SearchTimer::StopTimeFormatted() { - return ZeroPad((StopTime() / 100 ) % 100) + ":" + ZeroPad(StopTime() % 100); + time_t stop = cTimer::SetTime(time(NULL), (((StopTime() / 100 ) % 100) * 60 * 60) + (StopTime() % 100 * 60)); + return FormatDateTime(tr("%I:%M %p"), stop); } SearchTimers::SearchTimers() -- cgit v1.2.3