Roundcube Community Forum

 

24 hour time for 'today' (updated for recent release)

Started by Delta-9, August 14, 2006, 04:21:17 PM

Previous topic - Next topic

Delta-9

Don't know if this is a bug or an intended thing.

I noticed today after 12 o'clock noon today, my new email from today was showing as 1600 instead of showing as 4:00pm.

I made the changes to the config/main.inc.php file and the dates / times for everything after 'today' was working as I inteded it to work.  I ended up fixing this by going into the program/include/main.inc and changing the line below.

  return sprintf('%s %s', rcube_label('today'), date('g:ia', $timestamp));

If you are seeing the same thing, this seems to be a quick and easy fix.


jpweb


pinkeevee



Delta-9

I have a post that is archived in the Recycle Bin here: http://roundcubeforum.net/forum/index.php?topic=400.0

This is an update to that.  I realized when I upgraded to RC1 that this fix no longer worked.


So this is how you change 'today' from 24 hour format to 12 hour format in RC1.

change the below line in main.inc.php

from:
$rcmail_config['date_today'] = 'H:i';

to:
$rcmail_config['date_today'] = 'g:ia';

SKaero