Hi again,
I'm an American and prefer to use a 12 hour time display (i.e. 1:05pm) rather than a 24 hour clock (13:05). Currently Roundcube allows 12 hour time displays for messages older than one day, but for messages received today it still uses the 24 hour display. The following patch creates a preference for today's date (called date_today) in main.php.inc and then edits main.inc to use it.
Again, if I'm doing this wrong please let me know.
Thanks,
Doug
--- roundcubemail/config/main.inc.php.dist (revision 400) +++ roundcubemail/config/main.inc.php.dist (working copy) @@ -107,6 +107,9 @@ // the default locale setting $rcmail_config['locale_string'] = 'en';
+// use this format for today's date display
+$rcmail_config['date_today'] = 'H:i';
// use this format for short date display $rcmail_config['date_short'] = 'D H:i';
--- roundcubemail/program/include/main.inc (revision 400) +++ roundcubemail/program/include/main.inc (working copy) @@ -1687,7 +1687,7 @@
// define date format depending on current time
if ($CONFIG['prettydate'] && !$format && $timestamp > $today_limit)