[approved] Suggestion for date/time display

2005-06-10 14:18:28

Currently (MHonArc v2.6.6 at
the dates and times are display as specified in the mail message.
So the web page is a mix of all possible timezones.
That is very hard to read.

Propositions :
 - display all times using the same timezone :
   - timezone is selected by server admin
   - timezone is selected by web user (cookies or registration...)
   - timezone automagically appears in the web users local time

I prefer the last solution. It can be done like this.

WARNING ! JavaScript ahead. If you hate JS, just ignore this
message. I hate JS too, but this can not be done otherwise. No need
for flaming.

<A HREF="link to message body">message title</A> sender_name
(<script type="text/javascript"><!--
    var dt = new Date(MAGIC);
//--> </script>
<!-- fallback to current behavior, if the web user has no JS enabled -->
<noscript>Fri Jun 10 2005 - 04:16:50 EST</noscript>)

The HTML generator must retreive the correct time from the stored messages
and inject it instead of "MAGIC" as an integer number of milliseconds
since epoch.

Looks simple and effective to me ;-)

---------------------------------------------------------------------           Innovation, not litigation !
David Balazic                      
HERMES Softlab       
Zagrebska cesta 104            Phone: +386 2 450 8851 
SI-2000 Maribor
"Be excellent to each other." -
Bill S. Preston, Esq. & "Ted" Theodore Logan
<Prev in Thread] Current Thread [Next in Thread>