From 20403c63bb092332e65865f2613b6096eab5371c Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 5 Jul 2018 20:34:10 +0200 Subject: [PATCH] - epgview: fix display of mp_movie_info->dateOfLastPlay Signed-off-by: Thilo Graf --- src/gui/epgview.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index dc17371e4..7b1dd81cc 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -636,16 +636,19 @@ int CEpgData::show_mp(MI_MOVIE_INFO *mi, int mp_position, int mp_duration, bool extMovieInfo += "\n"; - tm *date_tm = localtime(&mp_movie_info->dateOfLastPlay); - extMovieInfo += g_Locale->getText(LOCALE_MOVIEBROWSER_INFO_PREVPLAYDATE); + tm *date_tm = localtime(&mp_movie_info->file.Time); + extMovieInfo += g_Locale->getText(LOCALE_MOVIEBROWSER_INFO_RECORDDATE); extMovieInfo += ": "; extMovieInfo += strftime("%F", date_tm); extMovieInfo += "\n"; - date_tm = localtime(&mp_movie_info->file.Time); - extMovieInfo += g_Locale->getText(LOCALE_MOVIEBROWSER_INFO_RECORDDATE); + date_tm = localtime(&mp_movie_info->dateOfLastPlay); + extMovieInfo += g_Locale->getText(LOCALE_MOVIEBROWSER_INFO_PREVPLAYDATE); extMovieInfo += ": "; - extMovieInfo += strftime("%F", date_tm); + if (mp_movie_info->dateOfLastPlay == 0) + extMovieInfo += "---"; + else + extMovieInfo += strftime("%F", date_tm); extMovieInfo += "\n"; extMovieInfo += "\n";