# MySQL time

**URL:** <https://forum.infinityfree.com/t/mysql-time/120541>\
**Category:** Hosting Support\
**Created:** [September 7, 2026, 4:57am UTC](https://forum.infinityfree.com/t/mysql-time/120541 "2026-09-07T04:57:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![forum-993](https://forum.infinityfree.com/letter_avatar/forum-993/32/6_449c533f586939b6e5f246632a46421f.png) [@forum-993](https://forum.infinityfree.com/u/forum-993)\
**Post date:** [September 7, 2026, 4:57am UTC](https://forum.infinityfree.com/t/mysql-time/120541/1 "2026-09-07T04:57:10Z")

</div>

### 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.

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [September 7, 2026, 7:25am UTC](https://forum.infinityfree.com/t/mysql-time/120541/2 "2026-09-07T07:25:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![forum-993](https://forum.infinityfree.com/letter_avatar/forum-993/32/6_449c533f586939b6e5f246632a46421f.png) [@forum-993](https://forum.infinityfree.com/u/forum-993)\
**Post date:** [September 7, 2026, 7:28am UTC](https://forum.infinityfree.com/t/mysql-time/120541/3 "2026-09-07T07:28:49Z")

</div>

oh, thanks 😅

yes, did it, problem solved

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [September 7, 2026, 7:33am UTC](https://forum.infinityfree.com/t/mysql-time/120541/4 "2026-09-07T07:33:59Z")

</div>

Haha comes up a lot. Glasd it’s fixed

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [September 10, 2026, 7:34am UTC](https://forum.infinityfree.com/t/mysql-time/120541/5 "2026-09-10T07:34:50Z")

</div>

Closed on September 10, 2026, 7:34am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
