X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-text-utils.c;h=6bba7f153e0f5509ebd4055b16517cedc1d5241a;hp=2d30511559d3fc31eabac681104cee558aabba10;hb=d8cca2763d3a9c9e46e827321a83bd26c40871e3;hpb=3b5dc6fc08a4bb09b660ce6c777edc2e35fdcdfa diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index 2d30511..6bba7f1 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -1403,10 +1403,17 @@ modest_text_utils_get_display_date (time_t date) /* if it's today, show the time, if it's not today, show the date instead */ /* TODO: take into account the system config for 24/12h */ +#ifdef MODEST_TOOLKIT_HILDON2 if (day == date_day) /* is the date today? */ modest_text_utils_strftime (date_buf, DATE_BUF_SIZE, _HL("wdgt_va_24h_time"), date); else modest_text_utils_strftime (date_buf, DATE_BUF_SIZE, _HL("wdgt_va_date"), date); +#else + if (day == date_day) /* is the date today? */ + modest_text_utils_strftime (date_buf, DATE_BUF_SIZE, "%X", date); + else + modest_text_utils_strftime (date_buf, DATE_BUF_SIZE, "%x", date); +#endif return date_buf; /* this is a static buffer, don't free! */ }