You are here: Home » Programming & Computer » PHP » TimeZone Error

TimeZone Error


Error: (2048) date() []: It is not safe to rely
on the system’s timezone settings. Please use the date.timezone
setting, the TZ environment variable or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier.

Above error mostly encountered when you uploaded your .php files into your hosting site(oversea hosting). You just need to put a line of code on top of your .php file to identify the timezone and your problems get solved:-


Useful Link:
List of Supported Timezones


Leave a Reply

Your email address will not be published. Required fields are marked *