{"action":"opened","issue":{"url":"https://api.github.com/repos/symphonists/system_date_fields/issues/12","labels_url":"https://api.github.com/repos/symphonists/system_date_fields/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/symphonists/system_date_fields/issues/12/comments","events_url":"https://api.github.com/repos/symphonists/system_date_fields/issues/12/events","html_url":"https://github.com/symphonists/system_date_fields/issues/12","id":113330976,"number":12,"title":"Don't use PHP's strtotime function","user":{"login":"michael-e","id":40072,"avatar_url":"https://avatars.githubusercontent.com/u/40072?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-e","html_url":"https://github.com/michael-e","followers_url":"https://api.github.com/users/michael-e/followers","following_url":"https://api.github.com/users/michael-e/following{/other_user}","gists_url":"https://api.github.com/users/michael-e/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-e/subscriptions","organizations_url":"https://api.github.com/users/michael-e/orgs","repos_url":"https://api.github.com/users/michael-e/repos","events_url":"https://api.github.com/users/michael-e/events{/privacy}","received_events_url":"https://api.github.com/users/michael-e/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T10:57:26Z","updated_at":"2015-10-26T10:57:26Z","closed_at":null,"body":"The fields use `strtotime`, but Symphony has its own datetime object/functions. Symphony's `DateTime` object can do the work, e.g. instead of:\r\n\r\n```php\r\n$value = DateTimeObj::get(__SYM_DATE_FORMAT__, strtotime($row['creation_date_gmt'] . ' +00:00'));\r\n```\r\n\r\nwe can simply use:\r\n\r\n```php\r\n$value = DateTimeObj::get(__SYM_DATE_FORMAT__, $row['creation_date_gmt'] . ' +00:00');\r\n```"}}