Sep 7, 2016
0
Level 5
Rogue timestamps on queue jobs
Hello lovely Laravel people. Hope you are all well.
I have run into a really weird issue whereby I am creating a new record using eloquent during a queued job. Unfortuantely, on the production server, the created_at field is being set 1 hour later than the current time.
- I am in the UK, but the timezone of my app is UTC.
- The same thing happens using both the database and sync drivers
- It's a forge server. The server time using
dateis BST, but the same thing happens if I change it to UTC - It works fine in development (homestead) and staging (also forge)
- It only happens during queue jobs
It is almost as though it is creating the record using BST instead of UTC, but I can't figure out where this change is happening.
Does anyone have any other suggestions?
Thanks, Joe
Please or to participate in this conversation.