PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
slackervaara
Worker
Worker


Joined: Aug 26, 2007
Posts: 234

PostPosted: Mon Jun 28, 2010 11:04 am Reply with quote Back to top

I have a PHP-Nuke 7.633 site that worked without problems for 7 years on the identical web hotel. One day last week the time was suddenly 2 hours behind, when posting news and in the forum center block. The time in forums posts and in Shoutbox were correct though.

I have contacted the web hotel, but they have not changed anything except upgrading to PHP 5.3, but it was some months ago and time was correct after that. I have not changed anything on the site prior to the time change.

For me it seems as the time locale in preferences in PHP-Nuke is not recognised correctly.

Grateful for input!

I have corrected the time in the forum center block by changing this line:
Code:
$result3 = $db->sql_query("SELECT poster_id, FROM_UNIXTIME(post_time,'%d/%m/%Y vid %H:%i') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'");

to this:
Code:
$result3 = $db->sql_query("SELECT poster_id, FROM_UNIXTIME(post_time + 7200,'%d/%m/%Y vid %H:%i') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'");
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3132
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri Aug 06, 2010 10:40 am Reply with quote Back to top

I know this time issue only from one blog because the regged users number today and yesterday is somewhere 2 hours behind my time zone.
Glad you solved it.
View user's profile Send private message Visit poster's website
slackervaara
Worker
Worker


Joined: Aug 26, 2007
Posts: 234

PostPosted: Fri Aug 06, 2010 8:35 pm Reply with quote Back to top

To admin.php I added at the top the line:
Code:
date_default_timezone_set('Europe/Stockholm');


It caused the time for news in admin.php to become correct, but the time for posted news is still 2 hours behind.
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3132
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Aug 11, 2010 7:03 am Reply with quote Back to top

There are many entries how to change the time in news I just can´t find my best links about this problem anymore. Anyway here is one link you could check:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
slackervaara
Worker
Worker


Joined: Aug 26, 2007
Posts: 234

PostPosted: Wed Aug 11, 2010 11:34 pm Reply with quote Back to top

Thanks! I have tried those fixes and I am not satisfied with them, because it makes the posting time for all my 7 years old news + 2 hours. I prefer to post news without this fix and manually change the time in nuke_stories after each new news post.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum