vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Wrong time on posts and pm (https://vborg.vbsupport.ru/showthread.php?t=190531)

jokerHR 09-10-2008 08:03 AM

Wrong time on posts and pm
 
After upgrade from 3.6.4. to 3.7.2. time on posts is wrong.

When I send new post, time on post is 9:00, on the bottom of page is
"All times are GMT +2. Now is 11:00." (and it really is 11:00 now in my timezone).

My timezone is GMT + 1, with daylight saving time GMT + 2.

DST is set to auto (since now is summer it's actually ON). If I turn if off I get post time 8:00 and "All times are GMT +1. Now is 10:00."

If I start date on that unix server prompt I get:
Wed Sep 10 11:00:00 CEST 2008

Wrong time is also when I send pm to myself or other person.

Marco van Herwaarden 09-10-2008 09:17 AM

Can you provide a link and a test account?

jokerHR 09-10-2008 09:31 AM

forum is at http://cafe.mobil.hr. I've sent you usename and pwd on pm. If anybody else needs account you can pm me or just register on forum

Marco van Herwaarden 09-10-2008 12:29 PM

Hmm this is very strange, i never saw such an behaviour before. Time shows correct on the forumhome, but it looks like the timezone is not taen into consideration for threads/posts.

To troubleshoot this, please remove any hacks and disable your plugins, then see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.

If your problem still exists, please create a new Style with no Parent set. Now browse the forum using this new style, do you still have the same problems? If you are troubleshooting login or guest issues, you will need to set this style as board default in the vBulletin Options.

jokerHR 09-11-2008 11:14 AM

Thank you for idea. Problem was in one plugin for openx ads.

It was reported at http://forum.openx.org/index.php?showtopic=503421161

I solved the problem by putting this line after the invocation code for the banner:
PHP Code:

date_default_timezone_set("Europe/Zagreb"); 


keledan2 04-18-2009 06:26 AM

Quote:

Originally Posted by jokerHR (Post 1619779)
Thank you for idea. Problem was in one plugin for openx ads.

It was reported at http://forum.openx.org/index.php?showtopic=503421161

I solved the problem by putting this line after the invocation code for the banner:
PHP Code:

date_default_timezone_set("Europe/Zagreb"); 


H, thanks a lot, this solved my problem too.


All times are GMT. The time now is 03:53 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.01058 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete