mhonarc-dev

[approved] Suggestion for date/time display

2005-06-10 14:18:28
Hi!

Currently (MHonArc v2.6.6 at
http://www.uwsg.iu.edu/hypermail/linux/kernel/0506.1/date.html)
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
   or
   - timezone is selected by web user (cookies or registration...)
   or
   - 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);
    document.write(dt.toLocaleString());
//--> </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 ;-)

Regards,
David
---------------------------------------------------------------------
http://noepatents.eu.org/           Innovation, not litigation !
---
David Balazic                      
mailto:david(_dot_)balazic(_at_)hermes(_dot_)si
HERMES Softlab                 http://www.hermes-softlab.com
Zagrebska cesta 104            Phone: +386 2 450 8851 
SI-2000 Maribor
Slovenija
---------------------------------------------------------------------
"Be excellent to each other." -
Bill S. Preston, Esq. & "Ted" Theodore Logan
---------------------------------------------------------------------
<Prev in Thread] Current Thread [Next in Thread>