Author |
Message |
etoiledemoon
Hangin' Around

Joined: Apr 29, 2010
Posts: 31
|
Posted:
Sat Mar 03, 2012 5:35 pm |
|
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 |
|
|
|
 |
dad7732
RavenNuke(tm) Development Team

Joined: Mar 18, 2007
Posts: 1242
|
Posted:
Sat Mar 03, 2012 5:42 pm |
|
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. |
|
|
|
 |
etoiledemoon

|
Posted:
Mon Mar 05, 2012 11:41 am |
|
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

|
Posted:
Mon Mar 05, 2012 12:37 pm |
|
Thanks for reporting back. Process of elimination works but sometimes takes a little while. Made my day as well as yours.
 |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Tue Mar 06, 2012 9:26 pm |
|
If you're using nukeSPAM, there is an issue that might be causing this. Check out this Only registered users can see links on this board! Get registered or login!. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
dad7732

|
Posted:
Thu Mar 08, 2012 2:18 pm |
|
Would be interesting to figure how nukeSPAM would affect/change a setting in php.ini |
|
|
|
 |
kguske

|
Posted:
Thu Mar 08, 2012 2:30 pm |
|
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

|
Posted:
Thu Mar 08, 2012 2:45 pm |
|
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

|
Posted:
Thu Mar 08, 2012 4:15 pm |
|
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

|
Posted:
Thu Mar 08, 2012 4:48 pm |
|
Did you change or comment out the line in nukeSPAM that sets the timezone to UTC? |
|
|
|
 |
dad7732

|
Posted:
Thu Mar 08, 2012 4:50 pm |
|
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

|
Posted:
Thu Mar 08, 2012 5:52 pm |
|
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

|
Posted:
Fri Mar 09, 2012 6:38 am |
|
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

|
Posted:
Fri Mar 09, 2012 7:43 am |
|
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. |
|
|
|
 |
|