Forum breadcrumbs – You are here:Asgaros Support ForumSupportUtc and local time
Please or Register to create posts and topics.

Utc and local time

Page 1 of 2Next

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.

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.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Wordpress timezone is +3. In wordpress general settings time is correct.

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?

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Quote from Asgaros on June 5, 2018, 7:34 pm

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?

Thank you for supporting.

I attach the screenshot.

Local timezone is Russia/Moscow.

Uploaded files:
  • S80605-210624.jpg

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 Asgaros on June 5, 2018, 7:34 pm

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?

Hello again @Asgaros. Did you have to repeat the problem? For understanding, I add screenshots.

Uploaded files:
  • S80609-1519331.jpg
  • S80609-1520041.jpg

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.

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

very strange. The problem is only on the forum list page and on the statistics page. The time is correct in the message.

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.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Page 1 of 2Next