We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ee7490 commit 6d8c53eCopy full SHA for 6d8c53e
src/Symfony/Component/Mailer/Transport/Smtp/Stream/AbstractStream.php
@@ -37,7 +37,7 @@ abstract class AbstractStream
37
public function write(string $bytes, bool $debug = true): void
38
{
39
if ($debug) {
40
- $timestamp = date('c');
+ $timestamp = (new \DateTimeImmutable())->format('Y-m-d\TH:i:s.up');
41
foreach (explode("\n", trim($bytes)) as $line) {
42
$this->debug .= \sprintf("[%s] > %s\n", $timestamp, $line);
43
}
@@ -93,7 +93,7 @@ public function readLine(): string
93
94
95
96
- $this->debug .= \sprintf('[%s] < %s', date('c'), $line);
+ $this->debug .= \sprintf('[%s] < %s', (new \DateTimeImmutable())->format('Y-m-d\TH:i:s.up'), $line);
97
98
return $line;
99
0 commit comments