PHP Mktime error -
PHP Mktime error -
i'm of sudden getting next error on site i've done, has been working fine far:
a php error encountered severity: warning message: mktime() [function.mktime]: not safe rely on system's timezone settings. *required* utilize date.timezone setting or date_default_timezone_set() function. in case used of methods , still getting warning, misspelled timezone identifier. selected 'antarctica/macquarie' 'est/10.0/no dst' instead
this code in question:
$stamp=mktime(0,0,0,$month,$day,$year);
what's issue here? how can create these errors go away? i'm using mktime
in format in lot of places , throwing error in each place.
as error says, either need specify timezone using date_default_timezone_set('antarctica/macquarie');
or ini_set('date.timezone', 'antarctica/macquarie');
in code or define date.timezone
in php.ini
.
php mktime
Comments
Post a Comment