How to save local time in DB and not UTC
-
When a member invites a non-member, data is stored at the bp-invitations table. The date is saved as the utc time, which means without the offset.
My wordpress is set to local timezone. So I have a difference of 2 hours. When I make calculations with the date stored at the db the wrong time leads to miscalculations, because CURDATE f.e. from mysql takes the local time and not utc.
What can I do to save datetime with local time at this table and not utc?
- You must be logged in to reply to this topic.