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

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -