Changeset 423 in subversion


Ignore:
Timestamp:
Dec 20, 2006 10:59:50 AM (6 years ago)
Author:
robin
Message:

Allow 12 hour date to display for emails sent today (Doug Mandell).

Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/config/main.inc.php.dist

    r388 r423  
    113113// use this format for detailed date/time formatting 
    114114$rcmail_config['date_long'] = 'd.m.Y H:i'; 
     115 
     116// use this format for today's date display 
     117$rcmail_config['date_today'] = 'H:i'; 
    115118 
    116119// add this user-agent to message headers when sending 
  • trunk/roundcubemail/program/include/main.inc

    r421 r423  
    17111711  // define date format depending on current time   
    17121712  if ($CONFIG['prettydate'] && !$format && $timestamp > $today_limit) 
    1713     return sprintf('%s %s', rcube_label('today'), date('H:i', $timestamp)); 
     1713    return sprintf('%s %s', rcube_label('today'), date($CONFIG['date_today'] ? $CONFIG['date_today'] : 'H:i', $timestamp)); 
    17141714  else if ($CONFIG['prettydate'] && !$format && $timestamp > $week_limit) 
    17151715    $format = $CONFIG['date_short'] ? $CONFIG['date_short'] : 'D H:i'; 
Note: See TracChangeset for help on using the changeset viewer.