You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the $datetime object could be \DateTimeImmutable or \DateTime, when it is \DateTimeImmutable, which is, by definition, immutable and the $datetime->setTimezone(new \DateTimeZone('UTC')) function won't be able to change the original $datetime object.
If I add some print_r() here, you can see it's not changed:
Monolog version 2
This is a followup to #1350
The old fix mainly is here: 226bc5f#diff-ea99f2625937f8253eb05c4bd9cc5aae307e306bf62665c6a809c126b78606f9R98
Which does
However, the
$datetime
object could be\DateTimeImmutable
or\DateTime
, when it is\DateTimeImmutable
, which is, by definition, immutable and the$datetime->setTimezone(new \DateTimeZone('UTC'))
function won't be able to change the original$datetime
object.If I add some print_r() here, you can see it's not changed:
However, if I add something like
Then it works:
The text was updated successfully, but these errors were encountered: