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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2008, 12:38 PM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Forum dates/time are off by an hour

Hello all,

I have been running my forum without any problems for some time now. However today at around 11:50 the site went down for around 30 seconds (currently being investigated by the host). When it came back everything seems to be working fine apart from the times on forum activity.

For example, a post made today at 13:46 is showing as 12:46

I have run the following PHP on the server:

Code:
$date = date( "d/m/Y H:i", time() );
echo $date
and this displays the correct GMT time (i.e. 30/04/2008 13:07 when executed at real world time of 14:07 (as the UK is currently GMT+1))

Also when the server came back after the blip users were seeing messages like:

"This forum requires that you wait 30 seconds between searches. Please try again in 663 seconds."

Does anybody have any ideas on how to resolve this?

EDIT : This is effecting both guests and registered users

EDIT : if it helps at all these are my ACP Date and Time Options

Datestamp Display Option - Yesterday / Today
Default Time Zone Offset - (GMT) Western Europe Time, London, Lisbon, Casablanca
Enable Daylight Savings - Yes
Format For Date - d-m-y
Format For Time - H:i
Format For Registration Date - M Y
Format For Birthdays with Year Specified - F j, Y
Format For Birthdays with Year Unspecified - F j
Log Date Format - H:i, jS M Y

EDIT: After reading through a few posts here and on vb.com a common suggestion is the usercp level configuration items, having checked a few accounts (all users are seeing incorrect times) the settings are:

Time Zone: (GMT) Western Europe Time, London, Lisbon, Casablanca
DST Correction Option: Automatically detect DST settings

Which I believe to be correct
Reply With Quote
  #2  
Old 04-30-2008, 01:23 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the time suddenly changes, then this indicates that the server time has probably been adjusted. Unless you have ran queries to change the timezone settings of all users, this is the most likely cause.

This would also explain why members get these very long search timeouts (which can ONLY be caused by a change of the server time). The search problems should resolve themself once the time difference (server time set back 1 hour, so after 1 hour time things should turn back to normal) has lapsed.
Reply With Quote
  #3  
Old 04-30-2008, 03:01 PM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your are right the search problems have gone now.

However the server time is correct but the forum display time is still out by an hour.

I have just run the PHP code described above again which returned "30/04/2008 16:00" which is correct as the server runs on GMT and I believe that VB auto detects DST. So it seems that for some reason PHP/VB or something doesn't realise we are currently +1
Reply With Quote
  #4  
Old 04-30-2008, 03:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure you have the correct time set in vboptions > date & time options also. If your server time was off before (did you ever check it before this?), then maybe you just set the whole site up to run according to it's time then.
Reply With Quote
  #5  
Old 04-30-2008, 03:44 PM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After speaking to the host they have resolved the time issue, it would seem the server went down and when it came back up it reverted to a default time policy that was incorrect.

So this is sort of fixed...

All posts/threads etc made after the host fixed the problem are now displaying the correct time, however everything posted before this is an hour out.

The only solution I can think of is a SQL statement to increment all times by 1 hour, however I don't want to do this if there is an alternative solution.

Oddily enough, posts made before the server crashed are also an hour out.
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 12:59 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.03876 seconds
  • Memory Usage 2,197KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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