Revert "Fix date being used in mail packets, timezone was effectively being to a timestamp with the timezone already"

This function is used to get the true date of a message (taking into account the TZ), and needed when creating the TZUTC

This reverts commit ad0ad73b0c.
This commit is contained in:
2024-06-28 18:28:12 +10:00
parent 7f4540f5ec
commit fc930ba6c2
11 changed files with 15 additions and 17 deletions

View File

@@ -497,7 +497,7 @@ class Message extends FTNBase
$this->mo->tftn->host_id, // Destination Net
$this->mo->flags&~(self::FLAG_INTRANSIT|self::FLAG_LOCAL), // Turn off our local/intransit bits
$this->mo->cost,
$this->mo->datetime->format('d M y H:i:s'),
$this->mo->date->format('d M y H:i:s'),
);
$return .= $this->mo->to."\00";
@@ -523,7 +523,7 @@ class Message extends FTNBase
$return .= sprintf("AREA:%s\r",strtoupper($this->mo->echoarea->name));
// Add some kludges
$return .= sprintf("\01TZUTC: %s\r",str_replace('+','',$this->mo->datetime->getOffsetString('')));
$return .= sprintf("\01TZUTC: %s\r",str_replace('+','',$this->mo->date->getOffsetString('')));
if ($this->mo->msgid)
$return .= sprintf("\01MSGID: %s\r",$this->mo->msgid);