Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2016, 02:31 PM
chikuru chikuru is offline
 
Join Date: Nov 2011
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default incorrect date

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!
Reply With Quote
  #2  
Old 07-13-2016, 02:51 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chikuru View Post
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.
Reply With Quote
  #3  
Old 07-13-2016, 02:57 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-13-2016, 03:04 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is your server? Dedicated?
Reply With Quote
  #5  
Old 07-14-2016, 05:04 AM
chikuru chikuru is offline
 
Join Date: Nov 2011
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 [DATE]1468514759[/DATE] at [TIME]1468514759[/TIME] ---------------

Quote:
Originally Posted by Dragonsys View Post
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 [DATE]1468547820[/DATE] at [TIME]1468547820[/TIME] ---------------

UP.
Anyone?
Reply With Quote
  #6  
Old 07-18-2016, 08:29 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chikuru View Post
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 [DATE]1468514759[/DATE] at [TIME]1468514759[/TIME] ---------------



what adjustments do i need to do in the forums?

--------------- Added [DATE]1468547820[/DATE] at [TIME]1468547820[/TIME] ---------------

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

Take a look at Default Time Zone Offset option.
Reply With Quote
  #7  
Old 07-19-2016, 12:15 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 07-19-2016, 09:00 AM
chikuru chikuru is offline
 
Join Date: Nov 2011
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Skyrider View Post
/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?

Quote:
Originally Posted by Lynne View Post
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..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03951 seconds
  • Memory Usage 2,231KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete