diff options
Diffstat (limited to 'epgsearchext.c')
-rw-r--r-- | epgsearchext.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epgsearchext.c b/epgsearchext.c index 26ff95a..f6f75cb 100644 --- a/epgsearchext.c +++ b/epgsearchext.c @@ -639,8 +639,10 @@ char* cSearchExt::BuildFile(const cEvent* pEvent) const char SubtitleBuffer[Utf8BufSize(MAX_SUBTITLE_LENGTH)]; if (isempty(Subtitle)) { - sprintf(SubtitleBuffer, "%s-%s", GETDATESTRING(pEvent), GETTIMESTRING(pEvent)); - Subtitle = SubtitleBuffer; + time_t Start = pEvent->StartTime(); + struct tm tm_r; + strftime(SubtitleBuffer, sizeof(SubtitleBuffer), "%Y.%m.%d-%R-%a", localtime_r(&Start, &tm_r)); + Subtitle = SubtitleBuffer; } else if (Utf8StrLen(Subtitle) > MAX_SUBTITLE_LENGTH) { |