I installed Yii->application->configuration->timezone
in UTC
and had a model attributeBehaviors
for automatically setting / updating the timestamp using the PHP method time()
.
The problem is that the timestamp, which is stored in db in the future, and when I do a search for records from today, they do not return if they were created between 10 and midnight, since the timestamp is actually tomorrow.
How to create a record and perform a search query?
Thanks.
source
share