{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/6926","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6926/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6926/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6926/events","html_url":"https://github.com/joomla/joomla-cms/pull/6926","id":75793050,"number":6926,"title":"Prevent notice with unset timezone while formatting a date","user":{"login":"bembelimen","id":1229869,"avatar_url":"https://avatars.githubusercontent.com/u/1229869?v=3","gravatar_id":"","url":"https://api.github.com/users/bembelimen","html_url":"https://github.com/bembelimen","followers_url":"https://api.github.com/users/bembelimen/followers","following_url":"https://api.github.com/users/bembelimen/following{/other_user}","gists_url":"https://api.github.com/users/bembelimen/gists{/gist_id}","starred_url":"https://api.github.com/users/bembelimen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bembelimen/subscriptions","organizations_url":"https://api.github.com/users/bembelimen/orgs","repos_url":"https://api.github.com/users/bembelimen/repos","events_url":"https://api.github.com/users/bembelimen/events{/privacy}","received_events_url":"https://api.github.com/users/bembelimen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-13T00:39:03Z","updated_at":"2015-10-24T10:45:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/6926","html_url":"https://github.com/joomla/joomla-cms/pull/6926","diff_url":"https://github.com/joomla/joomla-cms/pull/6926.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/6926.patch"},"body":"If you call JDate->format and no timezone is set, you'll get the error:\r\nWarning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, null given‏"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/150783766","html_url":"https://github.com/joomla/joomla-cms/pull/6926#issuecomment-150783766","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6926","id":150783766,"user":{"login":"Bloggerschmidt","id":1226135,"avatar_url":"https://avatars.githubusercontent.com/u/1226135?v=3","gravatar_id":"","url":"https://api.github.com/users/Bloggerschmidt","html_url":"https://github.com/Bloggerschmidt","followers_url":"https://api.github.com/users/Bloggerschmidt/followers","following_url":"https://api.github.com/users/Bloggerschmidt/following{/other_user}","gists_url":"https://api.github.com/users/Bloggerschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/Bloggerschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bloggerschmidt/subscriptions","organizations_url":"https://api.github.com/users/Bloggerschmidt/orgs","repos_url":"https://api.github.com/users/Bloggerschmidt/repos","events_url":"https://api.github.com/users/Bloggerschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/Bloggerschmidt/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T10:45:06Z","updated_at":"2015-10-24T10:45:06Z","body":"It works. I put the example code of the gist code and write it in index.php of the template. After saving I got [Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone] and after patch the warning disappears."}}