Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: Delta-9 on August 14, 2006, 04:21:17 PM

Title: 24 hour time for 'today' (updated for recent release)
Post by: Delta-9 on August 14, 2006, 04:21:17 PM
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.

Title: Re: 24 hour time for 'today' (updated for recent release)
Post by: jpweb on February 07, 2007, 10:32:15 PM
It worked for me thanks its around line 1739 :)
Title: Re: 24 hour time for 'today' (updated for recent release)
Post by: pinkeevee on February 09, 2007, 04:39:54 PM
oh thanks! That was getting on my nerves :)
Title: Re: 24 hour time for 'today' (updated for recent release)
Post by: road on February 13, 2007, 07:45:16 PM
This is nice, thanks!

Title: Re: 24 hour time for 'today' (updated for recent release)
Post by: Delta-9 on July 03, 2007, 11:33:20 PM
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';
Title: Re: 24 hour time for 'today' (updated for recent release)
Post by: SKaero on July 04, 2007, 02:40:05 AM
Removed from the Recycle Bin and merged