Deprecated: gmmktime(): The is_dst parameter is deprecated

Help with installation and general calendar setttings

Deprecated: gmmktime(): The is_dst parameter is deprecated

Postby vuurspuwer » Sat Mar 17, 2012 11:53 am

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
vuurspuwer
 
Posts: 2
Joined: Sat Mar 17, 2012 11:50 am

Deprecated: gmmktime(): The is_dst parameter is deprecated

Postby chris » Sat Mar 17, 2012 3:04 pm

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
User avatar
chris
Site Admin
 
Posts: 1088
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: error after installation

Postby vuurspuwer » Sat Mar 17, 2012 3:42 pm

That seems to help! Thx :)
vuurspuwer
 
Posts: 2
Joined: Sat Mar 17, 2012 11:50 am

Re: error after installation

Postby alanpike » Fri Aug 17, 2012 12:55 pm

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.
alanpike
 
Posts: 1
Joined: Fri Aug 17, 2012 12:52 pm

Re: error after installation

Postby plv01 » Wed Sep 26, 2012 5:17 am

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.
plv01
 
Posts: 1
Joined: Wed Sep 26, 2012 4:00 am

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

Postby johnf » Thu Oct 18, 2012 11:55 am

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
johnf
 
Posts: 1
Joined: Thu Oct 18, 2012 11:43 am


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron