Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
wiz
Involved
Involved



Joined: Oct 09, 2006
Posts: 413
Location: UK

PostPosted: Mon Feb 25, 2013 5:09 pm Reply with quote

Hey guys, long time no see Wink

I just updated my site from 2.4 to 2.51 and immediatly received a ton of errors in all blocks/modules and headers that require a timestamp.
such functions failing were (and not limited to) :
mktime()
strtotime()

I'm sure you get the drift.
Well I fixed my copy when i noticed line 63 in mainfile.php
Code:
   date_default_timezone_set("UTC"); 


Where UTC was originally (in the distro) set to the USA locale.
My suggestion is, would it be better to avoid this possible failure by replacing that value with a variable that could be defined in either config.php or rnconfig.php ?
As I say, just a suggestion, and i hope it was a worthwhile one Smile
Cheers
 
View user's profile Send private message Visit poster's website AIM Address
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1775

PostPosted: Tue Feb 26, 2013 6:28 am Reply with quote

You must only set the timezone in your php.ini and you don't need the change in the mainfile! Its only a fallback value.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
wiz







PostPosted: Tue Feb 26, 2013 6:45 am Reply with quote

Ok
I've got it set in my php.ini at server level. But i was scowling through the distro files yesterday and noticed this value, and it fixed a multitude of problems. Just thought it may have been something that was missed Smile
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Mar 13, 2013 10:08 pm Reply with quote

Wiz,

Thanks, we will look into this!
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

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 ©