Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
etoiledemoon
Hangin' Around



Joined: Apr 29, 2010
Posts: 31

PostPosted: Sat Mar 03, 2012 5:35 pm Reply with quote

not the same :

[~]# php -r "echo date('Y-m-d H:i:s');"
2012-03-03 18:34:

[~]# date
Sun Mar 4 00:35:04 CET 2012
 
View user's profile Send private message
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Sat Mar 03, 2012 5:42 pm Reply with quote

I'm trying by eliminating the obvious, the long way. However, I'm moving in the direction of the php version.

In your php.ini file, look for:

[date]

If the timezone setting isn't

date.timezone = "EUROPE/Paris"

Change it.
 
View user's profile Send private message
etoiledemoon







PostPosted: Mon Mar 05, 2012 11:41 am Reply with quote

many thanks , this fixed the problem , I've do the changes on php.ini
and now time are correct on website
thanks for your help
 
dad7732







PostPosted: Mon Mar 05, 2012 12:37 pm Reply with quote

Thanks for reporting back. Process of elimination works but sometimes takes a little while. Made my day as well as yours.

Cheers
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Tue Mar 06, 2012 9:26 pm Reply with quote

If you're using nukeSPAM, there is an issue that might be causing this. Check out this thread.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
dad7732







PostPosted: Thu Mar 08, 2012 2:18 pm Reply with quote

Would be interesting to figure how nukeSPAM would affect/change a setting in php.ini
 
kguske







PostPosted: Thu Mar 08, 2012 2:30 pm Reply with quote

In it's current form, it changes the server setting for timezone. If your server already has that set, you can comment out that line.
 
dad7732







PostPosted: Thu Mar 08, 2012 2:45 pm Reply with quote

His server time and his php time in RN didn't match and changing his php.ini timezone corrected the problem in RN. Dunno if commenting out the timezone in php.ini will cause RN to be correct, I may try it.
 
dad7732







PostPosted: Thu Mar 08, 2012 4:15 pm Reply with quote

My php.ini date.timezone is 'UTC' and has no effect in RN or my server time. I commented it out, still no changes. I edited and changed it to EUROPE/Paris and still no change.

etoiledemoon - do you remember what your timezone was set to in your php.ini before you changed it?
 
kguske







PostPosted: Thu Mar 08, 2012 4:48 pm Reply with quote

Did you change or comment out the line in nukeSPAM that sets the timezone to UTC?
 
dad7732







PostPosted: Thu Mar 08, 2012 4:50 pm Reply with quote

I don't use nukeSPAM. I'm testing still using RN 2.4 on my support production site. I can always install it on one of my other sites, like my 2.5 site I just installed.
 
dad7732







PostPosted: Thu Mar 08, 2012 5:52 pm Reply with quote

Installed nukeSPAM on my test production site and got all the API Keys except for the second one that I am waiting for a reply.

Where do I comment out the timezone in nukeSPAM?
 
kguske







PostPosted: Fri Mar 09, 2012 6:38 am Reply with quote

If you didn't have nukeSPAM, that obviously couldn't have caused the problem. However, the timezone is set:

Guardian2003 wrote:
The only way I can think of that happening is if something else is overriding it with the PHP function
date_default_timezone_set();
I just did a quick global search and found it is used in modules/nukeSPAM/nukeSPAM.php around line 30 so this could be the possible cause. You might want to comment that line out.
 
dad7732







PostPosted: Fri Mar 09, 2012 7:43 am Reply with quote

Installed and setup nukeSPAM on my test server and afterwards posted a test to the forum. Date/Time is the same as the server and is correct.

In php.ini

date.timezone = 'UTC'

In nukeSPAM

date_default_timezone_set('UTC');

Appears that nukeSPAM isn't the culprit. I also checked other php.ini files and the timezone setting is the same w/o nukeSPAM installed.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©