diff --git a/Rocksolid_Light/common/header.php b/Rocksolid_Light/common/header.php
index fcd8466..1c0c7e6 100644
--- a/Rocksolid_Light/common/header.php
+++ b/Rocksolid_Light/common/header.php
@@ -12,6 +12,16 @@ $CONFIG = include $config_file;
$menulist = get_section_menu_array();
$linklist = file($config_dir . "links.conf", FILE_IGNORE_NEW_LINES);
+// Set tzo if possible
+?>
+
+';
if ($article_show["Subject"])
echo $text_header["subject"] . htmlspecialchars($head->subject) . "
";
@@ -462,17 +457,10 @@ function show_header($head, $group, $local_poster = false)
if ((isset($head->organization)) && ($article_show["Organization"]) && ($head->organization != ""))
echo $text_header["organization"] . html_parse(htmlspecialchars($head->organization)) . "
\n";
if ($article_show["Date"]) {
- $ts = new DateTime(date($text_header["date_format"], $head->date), new DateTimeZone('UTC'));
- $ts->add(DateInterval::createFromDateString($offset . ' minutes'));
- if ($offset != 0) {
- echo $text_header["date"] . $ts->format('D, j M Y H:i') . "
\n";
- } else {
- echo $text_header["date"] . $ts->format($text_header["date_format"]) . "
\n";
- }
- unset($ts);
+ // Try to use client timezone else default to UTC
+ $displaydate = get_date_for_client_timezone($head->date);
+ echo $displaydate;
}
-
- // echo $text_header["date"].date($text_header["date_format"],$head->date)."
\n";
if ($article_show["Message-ID"]) {
echo ' ' . $text_header["message-id"] . htmlspecialchars($head->id) . "
\n";
}
@@ -517,21 +505,15 @@ function show_header($head, $group, $local_poster = false)
function show_header_short($head, $group, $local_poster = false)
{
global $article_show, $text_header, $file_article, $file_thread, $attachment_show;
- global $file_attachment, $anonym_address, $CONFIG, $config_name, $sitelink;
+ global $file_attachment, $CONFIG, $config_name, $sitelink;
global $OVERRIDES;
- if (isset($_COOKIE['tzo'])) {
- $offset = $_COOKIE['tzo'];
- } else {
- $offset = intval($CONFIG['timezone']);
- }
echo '