Author Topic: 24 hour time for 'today' (updated for recent release)  (Read 7326 times)

Offline Delta-9

  • Jr. Member
  • **
  • Posts: 35
24 hour time for 'today' (updated for recent release)
« 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.


Offline jpweb

  • Jr. Member
  • **
  • Posts: 46
Re: 24 hour time for 'today' (updated for recent release)
« Reply #1 on: February 07, 2007, 10:32:15 PM »
It worked for me thanks its around line 1739 :)

Offline pinkeevee

  • Newbie
  • *
  • Posts: 1
Re: 24 hour time for 'today' (updated for recent release)
« Reply #2 on: February 09, 2007, 04:39:54 PM »
oh thanks! That was getting on my nerves :)

Offline road

  • Newbie
  • *
  • Posts: 6
Re: 24 hour time for 'today' (updated for recent release)
« Reply #3 on: February 13, 2007, 07:45:16 PM »
This is nice, thanks!


Offline Delta-9

  • Jr. Member
  • **
  • Posts: 35
Re: 24 hour time for 'today' (updated for recent release)
« Reply #4 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';

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: 24 hour time for 'today' (updated for recent release)
« Reply #5 on: July 04, 2007, 02:40:05 AM »
Removed from the Recycle Bin and merged