I have set the Yii->application->configuration->timezone
to UTC
and have model attributeBehaviors
to insert/update the timestamp using PHP's time()
method automatically.
The issue, is that the timestamp that is saved to the db is in the future and when I perform a search query for records from today, they aren't being returned if they were created between 10 and midnight as the timestamp is actually tomorrow.
How should I create the record and perform a search query?
Thanks.