#534 Time Display in Message list

Review for Stable
closed-rejected
nobody
3
2008-03-12
2008-02-23
Oliver
No

Hi all,

first of all, i'd like thank the developers for the good work. My installation on a FreeBSD-6.3-RELEASE system works like a charm.

One little feature we'd like to have is displaying the time also in addition to the date in the various message list frames on the left side.

thnx

Oliver

Discussion

  • Oliver
    Oliver
    2008-02-23

    • priority: 5 --> 3
     
  • Oliver
    Oliver
    2008-02-23

    Logged In: YES
    user_id=1937920
    Originator: YES

    I mean the right frames listing messages (subject, From, ...)

     
    • status: open --> pending-invalid
     
  • Logged In: YES
    user_id=508228
    Originator: NO

    Try going to Options->Display Preferences->Always Show Full Date or specify very precisely what else you mean.

     
    • status: pending-invalid --> closed-invalid
     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • Oliver
    Oliver
    2008-03-12

    screen shot of message list

     
    Attachments
  • Oliver
    Oliver
    2008-03-12

    Logged In: YES
    user_id=1937920
    Originator: YES

    Hi Paul,

    I'll send you a screen shot to show what I mean. Look at the "Date Column". For the first mail it reads "May 18, 2007". I want it to read something like "May 18, 2007 20:15". The time isn't displayed. Since I know PHP coding, it'd be possible for me to change the native code if you give a hint in which file I have to change something.

    Greetings from Austria.

    Oliver

    File Added: msglist.png

     
  • Oliver
    Oliver
    2008-03-12

    • status: closed-invalid --> pending-invalid
     
  • Logged In: YES
    user_id=508228
    Originator: NO

    Grep for the text that I gave you. This leads you to functions/data.php, around line 365 (see $show_full_date). Change the date format on line 366 (or wherever else therein you please. The code on line 366 still depends on the user preference setting I referred to earlier being turned on.) to H:i or whatever. This assumes you are using our most recent stable code. I don't anticipate that this will be adopted by SquirrelMail.

     
    • status: pending-invalid --> closed-rejected
     
  • Oliver
    Oliver
    2008-03-12

    Logged In: YES
    user_id=1937920
    Originator: YES

    Hi Paul,

    Many Thanks. You made my day. It works.

    Regards
    Oliver

    PS: it's date.php ;-)

     
  • Logged In: YES
    user_id=620333
    Originator: NO

    A small idea here would be to allow the user to define a custom date format. It should be relatively easy to change the date format in the user prefs to be that of the PHP string we use. Then allow the user to build a custom value if they choose, based on the PHP syntax.

     
  • Logged In: YES
    user_id=508228
    Originator: NO

    Funny, I was thinking the same thing in the shower the other day. I have just added "Custom Date Format" as a user-customizable text field in the SquirrelMail development stream (1.5.2+). Two possible objections to it are: (1) confusing; maybe not entirely clear that when empty, behavior is what it was before... (2) is there some way to make it more clear that it's for advanced use; overrides the option that comes right before it; and refer the user to the PHP man page for date(); and note that it still passes through SM's date_intl()... but I'll leave those things for another time.