Changeset 539df6b in github
- Timestamp:
- Nov 26, 2009 12:42:19 PM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 1631ba3
- Parents:
- f7f9346
- File:
-
- 1 edited
-
program/include/main.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/main.inc
rbc6ac4d r539df6b 907 907 $week_limit = mktime(0, 0, 0, $now_date['mon'], $now_date['mday']-6, $now_date['year']); 908 908 909 // define date format depending on current time 910 if ($CONFIG['prettydate'] && !$format && $timestamp > $today_limit && $timestamp < $now) 911 return sprintf('%s %s', rcube_label('today'), date($CONFIG['date_today'] ? $CONFIG['date_today'] : 'H:i', $timestamp)); 912 else if ($CONFIG['prettydate'] && !$format && $timestamp > $week_limit && $timestamp < $now) 913 $format = $CONFIG['date_short'] ? $CONFIG['date_short'] : 'D H:i'; 914 else if (!$format) 915 $format = $CONFIG['date_long'] ? $CONFIG['date_long'] : 'd.m.Y H:i'; 909 // define date format depending on current time 910 if (!$format) { 911 if ($CONFIG['prettydate'] && $timestamp > $today_limit && $timestamp < $now) 912 return sprintf('%s %s', rcube_label('today'), date($CONFIG['date_today'] ? $CONFIG['date_today'] : 'H:i', $timestamp)); 913 else if ($CONFIG['prettydate'] && $timestamp > $week_limit && $timestamp < $now) 914 $format = $CONFIG['date_short'] ? $CONFIG['date_short'] : 'D H:i'; 915 else 916 $format = $CONFIG['date_long'] ? $CONFIG['date_long'] : 'd.m.Y H:i'; 917 } 916 918 917 919 // strftime() format
Note: See TracChangeset
for help on using the changeset viewer.
