summaryrefslogtreecommitdiff
path: root/epgsearch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'epgsearch.cpp')
-rw-r--r--epgsearch.cpp6
1 files changed, 4 insertions, 2 deletions
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()