MySQL time

Error Message

Hi, when I save my user registration data with timezone in database, the time is not UTC.
Example:
UTC time: 2026-09-07 04:53
Time in database: 2026-09-06 21:53:37

Is this happening to other people too? I am unsure whether I am writing something wrong in my code.

My guess is that you’re using the “now()” function?

The ssl server isn’t set to uct. You’re better using the php or JavaScript time function and then inserting that into your database as the time

oh, thanks :sweat_smile:

yes, did it, problem solved

Haha comes up a lot. Glasd it’s fixed