I have several co workers using round cube and showing "today" on some of the emails from the day and not on some others is confusing them.
Is there a code hack to just show the time stamp for the day or have all the emails for the day show today?
Thanks,
Charley
I don't clearly understand what you do want. Looks like rcm has three choice: Today, short date in same week or long date time format for weeks ago.
A coarse resolution could apply on program/include/rcmail.php
1192 #if ($pretty_date && $timestamp > $today_limit && $timestamp <= $now) {
1193 # $format = $this->config->get('date_today', $this->config->get('time_format', 'H:i' ));
1194 # $today = true;
1195 #}
1196 #else if ($pretty_date && $timestamp > $week_limit && $timestamp <= $now) {
1197 # $format = $this->config->get('date_short', 'D H:i');
1198 #}
1199 #else {
1200 # $format = $this->config->get('date_long', 'Y-m-d H:i');
1201 #}
1202 $format = $this->config->get('date_long', 'Y-m-d H:i');
And a screen shot looks like the attachment.
Hope you know how to modify the code.
Good luck!
@ingame: you do not need to alter any code to do that, just set prettydate to false in your roundcube config
@dwhs: have you checked why it is getting "today" wrong? may be the time on your web server is set wrong or the user's data/time settings in Roundcube is wrong?
Quote from: JohnDoh on November 21, 2015, 04:20:33 AM
@ingame: you do not need to alter any code to do that, just set prettydate to false in your roundcube config
@dwhs: have you checked why it is getting "today" wrong? may be the time on your web server is set wrong or the user's data/time settings in Roundcube is wrong?
Yes, you are right! Thank you!