laminas/laminas-hydrator

DateTimeImmutableFormatterStrategy

weierophinney opened this issue · 3 comments

It is not possible hydrate DateTimeImmutable dates. I was thinking about implementation and I created gist.

Your opinions about wrapper solution?


Originally posted by @vaclavvanik at zendframework/zend-hydrator#84

I think this could be very useful, as it ensures the object passed to the hydrator can be re-used over and over for that purpose.

Feel free to submit a pull request - make sure it includes unit tests and documentation. We can either include it in 3.0 if not yet released, or in 3.1.0 (which we can cut anytime following).


Originally posted by @weierophinney at zendframework/zend-hydrator#84 (comment)

Let's target 3.1.0 for this: 3.0.0 is ready for release, since the PR queue is empty.


Originally posted by @Ocramius at zendframework/zend-hydrator#84 (comment)

Completed with #17