# Time Out of Sync

**URL:** https://forum.mautic.org/t/time-out-of-sync/30539
**Category:** Product Support
**Created:** [January 17, 2024, 10:31pm UTC](https://forum.mautic.org/t/time-out-of-sync/30539 "2024-01-17T22:31:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![roblefko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/roblefko/32/4958_2.png) [@roblefko](https://forum.mautic.org/u/roblefko)
#### Post date: [January 17, 2024, 10:31pm UTC](https://forum.mautic.org/t/time-out-of-sync/30539/1 "2024-01-17T22:31:12Z")

</div>

**Your software**  
My Mautic version is: Mautic 4.4.10  
My PHP version is: 7.4.3-4ubuntu2.19  
My Database type and version is: 10.3.38-MariaDB-0ubuntu0.20.04.1

**Your problem**  
My problem is:  
This is not a new issue, but I’m first documenting it. Probably a configuration issue on my end, but I can’t figure it out. My server time is correct. However, I’m seeing that the timestamp in my error log seems to be using GMT. Similarly, when I look at a graph for the number of new contacts, it stops adding to today’s count when it is midnight GMT time. For the error log, I can adjust the time in my head, but for the graphs, the data from one day is getting mixed with the data for the next day. Interestingly, while the graphed data is getting associated with the wrong day, I’m still not able to view the graph for that day until after midnight my time.

Has anyone else encountered this?

These errors are showing in the log:

Steps I have tried to fix the problem: I’ve confirmed that the linux clock is correct.

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [January 19, 2024, 10:20am UTC](https://forum.mautic.org/t/time-out-of-sync/30539/2 "2024-01-19T10:20:34Z")

</div>

I would advise to set your time on server, wherever you can to UTC (server, php, etc.). In your mautic configuration you then set your location and app should display the data using correct time and date.

---

<div class="post-metadata">

### Author: ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)
#### Post date: [January 19, 2024, 5:05pm UTC](https://forum.mautic.org/t/time-out-of-sync/30539/3 "2024-01-19T17:05:16Z")

</div>

I read it this way:

- Error log is GMT=UTC → Means, server is set to UTC. Otherwise, the error log would be in roblefko’s or some other TZ
- roblefko set Mautic to his TZ in the backend.

So, everything is working as expected, but having the log in UTC can be confusing. But this is how things work 🤷‍♂️

If, however, the server is set to another TZ, you should really set it to UTC. Having another TZ can cause all sorts of confusing problems.

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [January 20, 2024, 10:37am UTC](https://forum.mautic.org/t/time-out-of-sync/30539/4 "2024-01-20T10:37:19Z")

</div>

Does backend in this context mean mautic app or php settings?

PHP settings should use UTC as well.

---

<div class="post-metadata">

### Author: ![roblefko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/roblefko/32/4958_2.png) [@roblefko](https://forum.mautic.org/u/roblefko)
#### Post date: [January 20, 2024, 4:24pm UTC](https://forum.mautic.org/t/time-out-of-sync/30539/5 "2024-01-20T16:24:19Z")

</div>

I’ve set the server time zone to GMT and the php time zone to GMT. I’ve left the Mautic default time zone as my local time zone. Let’s see if that works.

Thank you for your input!
