PDA

View Full Version : incorrect date


chikuru
07-13-2016, 02:31 PM
We recently move to a new server, and the date is incorrect. Now the posts(possible other data as well like PM, etc) have incorrect dates (but correct time)

How can we correct it using db query?
The date is 2 days advanced.. Its still incorrect at the moment..

Thanks!

Dragonsys
07-13-2016, 02:51 PM
We recently move to a new server, and the date is incorrect. Now the posts(possible other data as well like PM, etc) have incorrect dates (but correct time)

How can we correct it using db query?
The date is 2 days advanced.. Its still incorrect at the moment..

Thanks!

Sounds like your new server has the wrong date set. Ask your server support and have them verify the serve date/time is correct, and what timezone it is set to, then adjust your Forums Date and Time settings accordingly.

Dave
07-13-2016, 02:57 PM
If you're on a VPS/dedicated server, tell your host or whoever manages the server to setup a NTP client with the right timezone.

RichieBoy67
07-13-2016, 03:04 PM
What is your server? Dedicated?

chikuru
07-14-2016, 05:04 AM
Its a dedicated server.
Do I need to do anything from the database?
After I fix the server date, the dates in the forum is still correct like the thread date.. So I immediately reverted the settings and let the incorrect date remain until we have the right solution..

--------------- Added 1468514759 at 1468514759 ---------------

Sounds like your new server has the wrong date set. Ask your server support and have them verify the serve date/time is correct, and what timezone it is set to, then adjust your Forums Date and Time settings accordingly.

what adjustments do i need to do in the forums?

--------------- Added 1468547820 at 1468547820 ---------------

UP.
Anyone?

Skyrider
07-18-2016, 08:29 PM
Its a dedicated server.
Do I need to do anything from the database?
After I fix the server date, the dates in the forum is still correct like the thread date.. So I immediately reverted the settings and let the incorrect date remain until we have the right solution..

--------------- Added 1468514759 at 1468514759 ---------------



what adjustments do i need to do in the forums?

--------------- Added 1468547820 at 1468547820 ---------------

UP.
Anyone?
/admincp/options.php?do=options&dogroup=datetime

Take a look at Default Time Zone Offset option.

Lynne
07-19-2016, 12:15 AM
If you fix the time on the server, it doesn't fix the time in the database since the database got it's time from the server originally. It will only fix the time on any posts made after you fixed the time on the server.

chikuru
07-19-2016, 09:00 AM
/admincp/options.php?do=options&dogroup=datetime

Take a look at Default Time Zone Offset option.

Its GMT+10 Eastern Australia. What should I take note about it?

If you fix the time on the server, it doesn't fix the time in the database since the database got it's time from the server originally. It will only fix the time on any posts made after you fixed the time on the server.

Yes you are right.
Can you give me the database query to fix the incorrect date in the database?

All post from July 07 2016 to latest post should have minus 4 days date.
The time should remain the same..