Utc and local time
Quote from vanurin on June 5, 2018, 1:45 pmI just can not figure out how to set the time zone. on the server time is utc, local time is +3. when the user leaves a message, the forum is written that it is left 3 hours ago, that is, the forum does not know about the time zone. tell me, please, how to fix it.
I just can not figure out how to set the time zone. on the server time is utc, local time is +3. when the user leaves a message, the forum is written that it is left 3 hours ago, that is, the forum does not know about the time zone. tell me, please, how to fix it.
Quote from Asgaros on June 5, 2018, 7:15 pmHello @vanurin
Asgaros Forum uses the timezone-settings of your WordPress installation. Please have a look into Settings -> General. There you can adjust the timezone-settings for WordPress.
Hello @vanurin
Asgaros Forum uses the timezone-settings of your WordPress installation. Please have a look into Settings -> General. There you can adjust the timezone-settings for WordPress.
Quote from Asgaros on June 5, 2018, 7:34 pmHello again @vanurin
Can you post a screenshot here of your complete WordPress time-settings so that I can try to reproduce this with your settings on my testing-environment?
Hello again @vanurin
Can you post a screenshot here of your complete WordPress time-settings so that I can try to reproduce this with your settings on my testing-environment?
Quote from vanurin on June 5, 2018, 8:08 pmQuote from Asgaros on June 5, 2018, 7:34 pmHello again @vanurin
Can you post a screenshot here of your complete WordPress time-settings so that I can try to reproduce this with your settings on my testing-environment?
Thank you for supporting.
I attach the screenshot.
Local timezone is Russia/Moscow.
Quote from Asgaros on June 5, 2018, 7:34 pmHello again @vanurin
Can you post a screenshot here of your complete WordPress time-settings so that I can try to reproduce this with your settings on my testing-environment?
Thank you for supporting.
I attach the screenshot.
Local timezone is Russia/Moscow.
Uploaded files:Quote from vanurin on June 5, 2018, 11:20 pmif this helps, I’ve moved the site several times from the server to the server. now works on ubuntu 16.04.03, apache 2.4.18, php 7.0.30, mysql 5.7.22, webmin 1.883, virtualmin 6.03. can it be easier to change the time on the server itself? Wordpress 4.9.6-ru, asgaros 1.9.2 updated 1 minute ago 🙂
if this helps, I’ve moved the site several times from the server to the server. now works on ubuntu 16.04.03, apache 2.4.18, php 7.0.30, mysql 5.7.22, webmin 1.883, virtualmin 6.03. can it be easier to change the time on the server itself? Wordpress 4.9.6-ru, asgaros 1.9.2 updated 1 minute ago 🙂
Quote from vanurin on June 9, 2018, 2:25 pmQuote from Asgaros on June 5, 2018, 7:34 pmHello again @vanurin
Can you post a screenshot here of your complete WordPress time-settings so that I can try to reproduce this with your settings on my testing-environment?
Hello again @Asgaros. Did you have to repeat the problem? For understanding, I add screenshots.
Quote from Asgaros on June 5, 2018, 7:34 pmHello again @vanurin
Can you post a screenshot here of your complete WordPress time-settings so that I can try to reproduce this with your settings on my testing-environment?
Hello again @Asgaros. Did you have to repeat the problem? For understanding, I add screenshots.
Uploaded files:Quote from Asgaros on June 9, 2018, 4:40 pmHello @vanurin
I checked it with your settings and I could not reproduce this error yet. It can be possible that this is a problem with the timezone-configuration on your server.
Hello @vanurin
I checked it with your settings and I could not reproduce this error yet. It can be possible that this is a problem with the timezone-configuration on your server.
Quote from vanurin on June 9, 2018, 5:21 pmvery strange. The problem is only on the forum list page and on the statistics page. The time is correct in the message.
very strange. The problem is only on the forum list page and on the statistics page. The time is correct in the message.
Quote from Asgaros on June 9, 2018, 7:38 pmYes, its really strange. When a new post is saved into the database, the current_time(‘timestamp’) function is used to save the current time. When calculating the time-difference, the same function is used to get the current time-stamp which is compared to the value inside the database. Thats why I dont understand why there is a difference. The only thing I can assume is that MySQL is maybe doing something with the time-value.
Yes, its really strange. When a new post is saved into the database, the current_time(‘timestamp’) function is used to save the current time. When calculating the time-difference, the same function is used to get the current time-stamp which is compared to the value inside the database. Thats why I dont understand why there is a difference. The only thing I can assume is that MySQL is maybe doing something with the time-value.