Thread: Miscellaneous Hacks - Rotating Banner System
View Single Post
  #1752  
Old 03-02-2012, 12:50 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gripi View Post
hi.. i saw in 2.3.3 version:

2.3.3: Fix: Copy selected forum ID's during banner duplication. Changed: start and end hours for new banners are set to 0:00 and 23:59 respectively. Changed files: admin_rbs.php.

but.. in here, the time still go randomly, sometimes 15.00, sometimes 17.00.

and let say i already set the start date to 1 March 2012, the end date 2 March 2013, then i save it. then i open the banner configuration again, without changing anything in the configuration, i press the save button, then open it again, the start date become 2 March 2012, and the end date become 3 March 2013.

is this a bugs?
Quote:
Originally Posted by viper357 View Post
I have the same issue, whenever I save a new or old banner, it forwards the time by 8 hours, so if I set the banner to expire on 1 March at 1pm, when I click save it will change the time 8 hours ahead to 9pm, if I click save again it will go forward another 8 hours and change the expiry date to 2 March 5am.
These are issues with the server time differing with the database time. Normally, your server and database must match the same time zone and of course be synchronized in order to match the saving. There is not much I can do. All I suggest is to keep your servers going with UTC and in-sync for at least once a week. On crontab you would typically use:

Code:
0       5       *       *       *       root    /usr/sbin/ntpdate xx.pool.ntp.org>/dev/null 2>&1
where xx is the country code. Please see ntp.org for valid pools. Also note that if your server time has gone wild, it may need first a manual setup, since NTP will not adjust differences larger than 59 minutes 59 seconds.

If you issue a "SHOW NOW()" query, you may find out if the database is in-sync. On the server side, you would issue a date command with your root account. On Windows servers, this may be a bit tricky, because your webserver account should sync with UTC+0, but normally isn't.

In any case there are other possible issues with it and I really don't want to come down to this level.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01087 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete