Skip to content

Instantly share code, notes, and snippets.

@chrisa
Created April 3, 2013 18:23
Show Gist options
  • Select an option

  • Save chrisa/5303789 to your computer and use it in GitHub Desktop.

Select an option

Save chrisa/5303789 to your computer and use it in GitHub Desktop.
php > print date('Y-m-d H:i:s', time());
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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. We selected 'Europe/London' for 'BST/1.0/DST' instead in php shell code on line 1
2013-04-03 19:22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment