# The dates of the pause period will be shifted to the previous day by saving and displaying

**URL:** https://forum.mautic.org/t/the-dates-of-the-pause-period-will-be-shifted-to-the-previous-day-by-saving-and-displaying/14402
**Category:** Product Support
**Created:** [May 19, 2020, 1:22pm UTC](https://forum.mautic.org/t/the-dates-of-the-pause-period-will-be-shifted-to-the-previous-day-by-saving-and-displaying/14402 "2020-05-19T13:22:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ystksnd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ystksnd/32/912_2.png) [@ystksnd](https://forum.mautic.org/u/ystksnd)
#### Post date: [May 19, 2020, 1:22pm UTC](https://forum.mautic.org/t/the-dates-of-the-pause-period-will-be-shifted-to-the-previous-day-by-saving-and-displaying/14402/1 "2020-05-19T13:22:48Z")

</div>

**Your software**  
My Mautic version is: 2.15.3, 2.16.2  
My PHP version is: 7.2.27, 7.2.29

Initially I used Mautic 2.15.3 on Amazon EC2, which is originally installed by me, but then I confirmed that this issue also occurs with Mautic 2.16.2 (Bitnami Mautic Stack for AWS Cloud).

**Your problem**  
My problem is:  
Each time I save and display a pause period using the contact preference center, both the start date and end date will be shifted to the previous day. As a premise, I have set the time zone “Asia/Tokyo” that is ahead of UTC in the system environment. I changed the timezone in Ubuntu, PHP, MySQL.

Initially I used Mautic 2.15.3, but then I confirmed that this issue also occurs in Mautic 2.16.2.

How could I solve this issue? If it is a bug, are there any workarounds?  
Is this issue related to the following request?

> <https://github.com/mautic/mautic/pull/7752>

  
But, I would like to handle it in Mautic 2 versions.

First of all, I set the pause period in May as below:

 ![1_before](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/540dc2743d79d7e55ff2a68fb10c19dba23127c3.png)

When reopened, the pause period was as below (I did not push the save button this time):

 ![2_after](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/9d30eccdd29f81a1c5e1be7368ae07a62cec86d1.png)

The values of datetime columns both “pause\_from\_date” and “pause\_to\_date” are 9 hours behind 00:00.

 ![5_timedate_value](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/81ec78c6b8a657a233b3b3c372b9fd54a4093268.png)

These errors are showing in the log:  
There’s nothing special.

Steps I have tried to fix the problem:  
I have confirmed the time zone settings.  
(1) Ubuntu  
 ![4_ubuntu](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/c7e7d024d20028220bec180a70f77e891e9c84ad.png)

(2) MySQL  
The global and session time zone values:  
 ![3_mysql](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/def9b1225220b834f5de1c33013e80ce3eb406ca.png)

(3) PHP  
in the configuration file “php.ini”:

 ![6_php_ini](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/53fb00556e566af7e9427570e203186eed6c1340.png)

Settings \> System Info \> PHP Info

 ![7_php_info](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/32b19c98b2fe803568b759c1e2b1428dfaf46be9.png)

(4) Mautic  
Settings \> Configuration \> System Settings

 ![8_mautic](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/b562068439e72f968e475effbee34e581b006c0b.png)
