EventSaucePHP / ObjectHydrator

Object Hydration library to create Command and Query objects.
MIT License
318 stars 24 forks source link

Add additional CastToDateTimeImmutable attribute argument timezone (optional) #21

Closed jmatthiesen81 closed 2 years ago

jmatthiesen81 commented 2 years ago

Moin Moin from Hamburg.

I found your package some weeks ago and bookmarked it. Now is the time I'm using it and I have an optimization suggest for you. The cast CastToDateTimeImmutable doesn't care about the date time zone. This can have different side effefcts. In this pull request I added the possibility to use a time zone for the cast.

- Cheers Jan

frankdejonge commented 2 years ago

I'll add some tests and then release a 0.x.x version :)

frankdejonge commented 2 years ago

Released as 0.4.1 👍