mapado / rest-client-sdk

Rest Client SDK for hydra API
MIT License
11 stars 4 forks source link

DateTime : changing timezone #96

Open jdeniau opened 5 years ago

jdeniau commented 5 years ago

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.