From 8ae98c9dc41f225bd8ef65a4210682ea9b9740a4 Mon Sep 17 00:00:00 2001 From: Shubham Kumar Date: Fri, 6 May 2016 11:55:59 +0530 Subject: [PATCH] [TSAM-2283] Fixed time issue in 24-hour format Change-Id: Iab6c9629de3ee0fb3f538c165192b45b54b55d24 Signed-off-by: Shubham Kumar --- inc/mf-conf.h | 2 +- src/widget/mf-genlist.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/mf-conf.h b/inc/mf-conf.h index a8cbafb..cfcfda5 100755 --- a/inc/mf-conf.h +++ b/inc/mf-conf.h @@ -42,7 +42,7 @@ #define GRP_TRAY_ITEM "apptray.item" #define MYFILE_DATEFORMAT_12 "yMdhm"//"MMddyyyyhm" -#define MYFILE_DATEFORMAT_24 "yMdhm" +#define MYFILE_DATEFORMAT_24 "yMdHm" #define MYFILE_LABEL_STRING_LENGTH 128 diff --git a/src/widget/mf-genlist.c b/src/widget/mf-genlist.c index f54bc93..5f0339d 100755 --- a/src/widget/mf-genlist.c +++ b/src/widget/mf-genlist.c @@ -390,7 +390,7 @@ static char *__mf_genlist_gl_label_get_lite(void *data, Evas_Object *obj, const && params->ap->mf_Status.more != MORE_EDIT_DELETE && !(params->ap->mf_Status.more == MORE_RENAME && mf_view_get_pre_state(params->ap) == MORE_EDIT))*/ if (!params->create_date && params->modify_time) { - char *tempdate = mf_util_icu_translate(params->ap, params->modify_time, false); + char *tempdate = mf_util_icu_translate(params->ap, params->modify_time, true); SAFE_FREE_CHAR(params->create_date); params->create_date = tempdate; return g_strdup(params->create_date); @@ -398,7 +398,7 @@ static char *__mf_genlist_gl_label_get_lite(void *data, Evas_Object *obj, const i18n_udate date = 0; mf_file_attr_get_file_mdate(params->m_ItemName->str, &date); params->modify_time = date; - char *tempdate = mf_util_icu_translate(params->ap, params->modify_time, false); + char *tempdate = mf_util_icu_translate(params->ap, params->modify_time, true); SAFE_FREE_CHAR(params->create_date); params->create_date = tempdate; return g_strdup(params->create_date); -- 2.7.4