zend-hydrator icon indicating copy to clipboard operation
zend-hydrator copied to clipboard

DateTimeImmutableFormatterStrategy

Open vaclavvanik opened this issue 6 years ago • 3 comments

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

Your opinions about wrapper solution?

vaclavvanik avatar Nov 30 '18 15:11 vaclavvanik

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).

weierophinney avatar Dec 04 '18 20:12 weierophinney

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

Ocramius avatar Dec 09 '18 20:12 Ocramius

This repository has been closed and moved to laminas/laminas-hydrator; a new issue has been opened at https://github.com/laminas/laminas-hydrator/issues/3.

weierophinney avatar Dec 31 '19 23:12 weierophinney