5 months ago

Fixing the Timezone for datetime fields

Posted 5 months ago by connecteev

When I add a new record to MySQL, the created_at and updated_at fields are always 7 hours ahead of my current timezone (I am on PST or Pacific time).

I did try a SELECT NOW() in MySQL and it returns my current time (PST), however anytime my Laravel application adds a record, the created_at and updated_at fields (or any other dates) end up being 7 hours ahead.

What gives??

Please sign in or create an account to participate in this conversation.