Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

How to automatic convert SQL TIMESTAMP to PHP DateTime Object in Mvc\Model?

How to automatic convert SQL TIMESTAMP to PHP DateTime Object in Mvc\Model?

You could use property get and set.



47.6k
Accepted
answer

Create an afterFetch() function in your model, and do some logic to translate the data.