Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- php > $x = new DateTime('2014-01-01 10:00:00');
- Warning: Uncaught exception 'Exception' with message 'DateTime::__construct(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in php shell code:1
- Stack trace:
- #0 php shell code(1): DateTime->__construct('2014-01-01 10:0...')
- #1 {main}
- thrown in php shell code on line 1
- php > var_dump($x);
- NULL
Advertisement
Add Comment
Please, Sign In to add comment