Changeset 508 in subversion


Ignore:
Timestamp:
Mar 14, 2007 4:50:34 AM (6 years ago)
Author:
thomasb
Message:

Correctly format dates in future

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r500 r508  
    17271727 
    17281728  // define date format depending on current time   
    1729   if ($CONFIG['prettydate'] && !$format && $timestamp > $today_limit) 
     1729  if ($CONFIG['prettydate'] && !$format && $timestamp > $today_limit && $timestamp < $now) 
    17301730    return sprintf('%s %s', rcube_label('today'), date($CONFIG['date_today'] ? $CONFIG['date_today'] : 'H:i', $timestamp)); 
    1731   else if ($CONFIG['prettydate'] && !$format && $timestamp > $week_limit) 
     1731  else if ($CONFIG['prettydate'] && !$format && $timestamp > $week_limit && $timestamp < $now) 
    17321732    $format = $CONFIG['date_short'] ? $CONFIG['date_short'] : 'D H:i'; 
    17331733  else if (!$format) 
Note: See TracChangeset for help on using the changeset viewer.