MyBB Community Forums

Full Version: Errors on profile when user = away
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Following two errors on a profile page of an away user:
Deprecated: mktime() [function.mktime]: The is_dst parameter is deprecated in /users/dutchharbor/www/forum/inc/functions_time.php on line 230

Deprecated: gmmktime() [function.gmmktime]: The is_dst parameter is deprecated in /users/dutchharbor/www/forum/inc/functions_time.php on line 230

Is there a way to fix this ?
Hm, it would appear some people have coding changes to make. That parameter is indeed deprecated in PHP 5.3.0 and will throw an error...
I thought we supressed deprecation errors?...
(2012-05-09, 09:40 PM)Tomm M Wrote: [ -> ]I thought we supressed deprecation errors?...
How do you do that ?
Don't care what error it is, as long as it's gone and it just works as it should Big Grin
Would I need to comment out lines or does that only apply to magic quotes ?
Open ./inc/functions_time.php and find this:

$TZ = mktime(0,0,0,12,2,$y,0) - gmmktime(0,0,0,12,2,$y,0);

Change it to

$TZ = mktime(0,0,0,12,2,$y) - gmmktime(0,0,0,12,2,$y);