Display date/time when viewing a message
Alexander Skwar
ASkwar@DigitalProjects.com
Wed, 10 Oct 2001 08:02:21 +0200
Hi1
When viewing a message, the date/time was displayed exactly as it was
transmitted. With this patch applied, the date/time is displayed the
same way it is displayed when composing a new message. IMO this looks
better, as there isn't yet another date/time formt the user has to get
used to.
--- message.php.alt Wed Oct 10 07:59:04 2001
+++ message.php Wed Oct 10 07:58:45 2001
@@ -371,7 +371,11 @@
HTTP_Compress::start();
}
-if (isset($h->date)) $dat = htmlspecialchars(MIME::decode($h->date));
+if (isset($h->date)){
+ $dat = htmlspecialchars(MIME::decode($h->date));
+ $stamp = strtotime($dat);
+ $dat = strftime($conf['compose']['date_format'], $stamp);
+}
if (isset($h->to)) $to = buildAddressLinks($h->to);
if (isset($h->from)) $frm = buildAddressLinks($h->from);
if (isset($h->cc)) $cc = buildAddressLinks($h->cc);
Alexander Skwar
--
How to quote: http://learn.to/quote (de) http://quote.6x.to (en)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/