This follows #95, it could be usefull to change datetime timezone before formating.
This operation should not alter original value, so we need to convert DateTime instances to DateTimeImmutable (with DateTimeImmutable::fromMutable($d)) to do the job.
This follows #95, it could be usefull to change datetime timezone before formating.
This operation should not alter original value, so we need to convert
DateTime
instances toDateTimeImmutable
(withDateTimeImmutable::fromMutable($d)
) to do the job.