Allow 12 hour date to display for emails sent today (Doug Mandell).
| | |
| | | // use this format for detailed date/time formatting |
| | | $rcmail_config['date_long'] = 'd.m.Y H:i'; |
| | | |
| | | // use this format for today's date display |
| | | $rcmail_config['date_today'] = 'H:i'; |
| | | |
| | | // add this user-agent to message headers when sending |
| | | $rcmail_config['useragent'] = 'RoundCube Webmail/0.1b'; |
| | | |
| | |
| | | |
| | | // define date format depending on current time |
| | | if ($CONFIG['prettydate'] && !$format && $timestamp > $today_limit) |
| | | return sprintf('%s %s', rcube_label('today'), date('H:i', $timestamp)); |
| | | return sprintf('%s %s', rcube_label('today'), date($CONFIG['date_today'] ? $CONFIG['date_today'] : 'H:i', $timestamp)); |
| | | else if ($CONFIG['prettydate'] && !$format && $timestamp > $week_limit) |
| | | $format = $CONFIG['date_short'] ? $CONFIG['date_short'] : 'D H:i'; |
| | | else if (!$format) |