Page 1 of 1

Deprecated: gmmktime(): The is_dst parameter is deprecated

PostPosted: Sat Mar 17, 2012 11:53 am
by vuurspuwer
Hi!
Your script really looks great, I only can't seem to fix this problem.
It shows an error:
Deprecated: gmmktime(): The is_dst parameter is deprecated in /customers/3/6/7/*name site*/httpd.www/kalender/ac-includes/functions.inc.php on line 250

Could somebody explain me how to fix this?

Kind regards

Deprecated: gmmktime(): The is_dst parameter is deprecated

PostPosted: Sat Mar 17, 2012 3:04 pm
by chris
Hi,
Now that *is* annoying.
I added that code in attempt to solve the issue on some servers with the date() function where they require the timezone to be set.
Now it turns out that on other php versions this function is depreciated :evil:

I need to look for a different solution.

In the meantime you may be able to resolve this by opening the ac-includes > functions.inc.php file and commenting out (or removing) this line (12):

Code: Select all
date_default_timezone_set(getLocalTimezone());


However, depending on your php version that might cause a different error....

Let me know what happens.

Chris

Re: error after installation

PostPosted: Sat Mar 17, 2012 3:42 pm
by vuurspuwer
That seems to help! Thx :)

Re: error after installation

PostPosted: Fri Aug 17, 2012 12:55 pm
by alanpike
Commenting out that line worked for me on php v. 5.3.13 also... just configuring it up now. thanks will let you know how it looks.

Re: error after installation

PostPosted: Wed Sep 26, 2012 5:17 am
by plv01
The problem must be in your getLocalTimezone function and not the script cause when I replaced it with a hard-coded timezone it works perfectly.

Re: Deprecated: gmmktime(): The is_dst parameter is deprecat

PostPosted: Thu Oct 18, 2012 11:55 am
by johnf
Yes, commenting out that line works for me, too. Thank you Chris, I will let you have a link to the completed website when it is finished. And will also donate - the calendar looks like it works well.
John