{"action":"created","issue":{"url":"https://api.github.com/repos/chriswoodford/foursquare-php/issues/15","labels_url":"https://api.github.com/repos/chriswoodford/foursquare-php/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/chriswoodford/foursquare-php/issues/15/comments","events_url":"https://api.github.com/repos/chriswoodford/foursquare-php/issues/15/events","html_url":"https://github.com/chriswoodford/foursquare-php/issues/15","id":71560132,"number":15,"title":"DateTime crash","user":{"login":"malcolmhall","id":916912,"avatar_url":"https://avatars.githubusercontent.com/u/916912?v=3","gravatar_id":"","url":"https://api.github.com/users/malcolmhall","html_url":"https://github.com/malcolmhall","followers_url":"https://api.github.com/users/malcolmhall/followers","following_url":"https://api.github.com/users/malcolmhall/following{/other_user}","gists_url":"https://api.github.com/users/malcolmhall/gists{/gist_id}","starred_url":"https://api.github.com/users/malcolmhall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malcolmhall/subscriptions","organizations_url":"https://api.github.com/users/malcolmhall/orgs","repos_url":"https://api.github.com/users/malcolmhall/repos","events_url":"https://api.github.com/users/malcolmhall/events{/privacy}","received_events_url":"https://api.github.com/users/malcolmhall/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T11:20:03Z","updated_at":"2015-04-28T11:23:49Z","closed_at":"2015-04-28T11:23:49Z","body":"```\r\nPHP Fatal error:  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 /Users/mh/Development/Foursquare/vendor/thetwelvelabs/foursquare/lib/TheTwelve/Foursquare/EndpointGateway.php:36\r\nStack trace:\r\n#0 /Users/mh/Development/Foursquare/vendor/thetwelvelabs/foursquare/lib/TheTwelve/Foursquare/EndpointGateway.php(36): DateTime->__construct('2013-10-23')\r\n#1 /Users/mh/Development/Foursquare/vendor/thetwelvelabs/foursquare/lib/TheTwelve/Foursquare/ApiGatewayFactory.php(186): TheTwelve\\Foursquare\\EndpointGateway->__construct(Object(TheTwelve\\Foursquare\\HttpClient\\CurlHttpClient))\r\n#2 /Users/mh/Development/Foursquare/test.php(11): TheTwelve\\Four in /Users/mh/Development/Foursquare/vendor/thetwelvelabs/foursquare/lib/TheTwelve/Foursquare/EndpointGateway.php on line 36\r\n```\r\n\r\nHere is what I had so far:\r\n\r\n```\r\n<?php\r\n\r\nrequire_once __DIR__ . '/vendor/autoload.php';\r\n\r\n$client = new \\TheTwelve\\Foursquare\\HttpClient\\CurlHttpClient();\r\n\r\n$factory = new \\TheTwelve\\Foursquare\\ApiGatewayFactory($client);\r\n\r\n$factory->setClientCredentials('REDACTED', 'REDACTED');\r\n\r\n$gateway = $factory->getVenuesGateway();\r\n\r\n  $venues = $gateway->search(array(\r\n    'll' => '40.727198,-73.992289',\r\n    'query' => 'Starbucks',\r\n    'radius' => 1000,\r\n    'intent' => 'checkin'\r\n  ));\r\n\r\nprint_r($venues);"},"comment":{"url":"https://api.github.com/repos/chriswoodford/foursquare-php/issues/comments/97025727","html_url":"https://github.com/chriswoodford/foursquare-php/issues/15#issuecomment-97025727","issue_url":"https://api.github.com/repos/chriswoodford/foursquare-php/issues/15","id":97025727,"user":{"login":"malcolmhall","id":916912,"avatar_url":"https://avatars.githubusercontent.com/u/916912?v=3","gravatar_id":"","url":"https://api.github.com/users/malcolmhall","html_url":"https://github.com/malcolmhall","followers_url":"https://api.github.com/users/malcolmhall/followers","following_url":"https://api.github.com/users/malcolmhall/following{/other_user}","gists_url":"https://api.github.com/users/malcolmhall/gists{/gist_id}","starred_url":"https://api.github.com/users/malcolmhall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malcolmhall/subscriptions","organizations_url":"https://api.github.com/users/malcolmhall/orgs","repos_url":"https://api.github.com/users/malcolmhall/repos","events_url":"https://api.github.com/users/malcolmhall/events{/privacy}","received_events_url":"https://api.github.com/users/malcolmhall/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T11:23:49Z","updated_at":"2015-04-28T11:23:49Z","body":"had to set date.timezone in php.ini"}}