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

@@ -62,8 +62,8 @@ class Test extends Echomails
$msg->addText(
sprintf("Your test was received here on %s and it looks like you sent it on %s. If that is correct, then it took %s to get here.\r\r",
Carbon::now()->utc()->toDateTimeString(),
$this->mo->datetime->utc()->toDateTimeString(),
$this->mo->datetime->diffForHumans(['parts'=>3,'syntax'=>CarbonInterface::DIFF_ABSOLUTE])
$this->mo->date->utc()->toDateTimeString(),
$this->mo->date->diffForHumans(['parts'=>3,'syntax'=>CarbonInterface::DIFF_ABSOLUTE])
)
);

View File

@@ -53,7 +53,7 @@ class EchoareaNoWrite extends Netmails
$this->mo->msgid,
$this->mo->to,
Carbon::now()->utc()->toDateTimeString(),
$this->mo->datetime->utc()->toDateTimeString(),
$this->mo->date->utc()->toDateTimeString(),
)
);

View File

@@ -55,7 +55,7 @@ class EchoareaNotExist extends Netmails
$this->mo->msgid,
$this->mo->to,
Carbon::now()->utc()->toDateTimeString(),
$this->mo->datetime->utc()->toDateTimeString(),
$this->mo->date->utc()->toDateTimeString(),
)
);

View File

@@ -53,7 +53,7 @@ class EchoareaNotSubscribed extends Netmails
$this->mo->msgid,
$this->mo->to,
Carbon::now()->utc()->toDateTimeString(),
$this->mo->datetime->utc()->toDateTimeString(),
$this->mo->date->utc()->toDateTimeString(),
)
);

View File

@@ -53,7 +53,7 @@ class EchomailBadAddress extends Netmails
$this->mo->msgid,
$this->mo->to,
Carbon::now()->utc()->toDateTimeString(),
$this->mo->datetime->utc()->toDateTimeString(),
$this->mo->date->utc()->toDateTimeString(),
)
);

View File

@@ -55,7 +55,7 @@ class NetmailHubNoUser extends Netmails
$this->mo->msgid,
$this->mo->to,
Carbon::now()->utc()->toDateTimeString(),
$this->mo->datetime->utc()->toDateTimeString(),
$this->mo->date->utc()->toDateTimeString(),
)
);

View File

@@ -55,8 +55,8 @@ class Ping extends Netmails
$msg->addText(
sprintf("Your ping was received here on %s and it looks like you sent it on %s. If that is correct, then it took %s to get here.\r\r",
Carbon::now()->utc()->toDateTimeString(),
$this->mo->datetime->utc()->toDateTimeString(),
$this->mo->datetime->diffForHumans(['parts'=>3,'syntax'=>CarbonInterface::DIFF_ABSOLUTE])
$this->mo->date->utc()->toDateTimeString(),
$this->mo->date->diffForHumans(['parts'=>3,'syntax'=>CarbonInterface::DIFF_ABSOLUTE])
)
);