Author Topic: Is there a way to remove the today time stamp?  (Read 3572 times)

Offline dwhs

  • Newbie
  • *
  • Posts: 1
Is there a way to remove the today time stamp?
« on: November 16, 2015, 11:38:07 PM »
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

Offline igame

  • Newbie
  • *
  • Posts: 4
Re: Is there a way to remove the today time stamp?
« Reply #1 on: November 21, 2015, 02:53:05 AM »
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
Code: [Select]
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!

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: Is there a way to remove the today time stamp?
« Reply #2 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?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline igame

  • Newbie
  • *
  • Posts: 4
Re: Is there a way to remove the today time stamp?
« Reply #3 on: November 21, 2015, 06:55:43 PM »
@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!