{"issue":{"created_at":"2011-12-01T14:08:49Z","state":"closed","updated_at":"2011-12-02T10:19:04Z","comments":2,"user":{"gravatar_id":"863e0a6594834fba2ec6cb9a4d9243ae","id":210896,"url":"https://api.github.com/users/alpacaaa","login":"alpacaaa","avatar_url":"https://secure.gravatar.com/avatar/863e0a6594834fba2ec6cb9a4d9243ae?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm aware date time handling in php is a mess, so please bear with me if what I'm gonna say makes little sense :)\r\n\r\nCurrently, you cannot use timestamps when filtering a Date field because `DateTimeObj::validate` won't validate them. However, `DateTimeObj::get` is perfectly able to handle timestamps so I *think* it's just a matter of making them validate.\r\n\r\nFound a little snippet on [stackoverflow](http://stackoverflow.com/a/2524710) which checks if a string is a timestamp:\r\n\r\n    ( is_numeric($stamp) && (int)$stamp == $stamp )\r\n\r\nSounds easy and straightforward, but maybe there is a reason why timestamps aren't allowed.","assignee":{"gravatar_id":"6be8e584a0f454ac2dc7600bdeaca7b7","id":69268,"url":"https://api.github.com/users/brendo","login":"brendo","avatar_url":"https://secure.gravatar.com/avatar/6be8e584a0f454ac2dc7600bdeaca7b7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2414772,"labels":[{"color":"423A3A","name":"confirmed","url":"https://api.github.com/repos/symphonycms/symphony-2/labels/confirmed"}],"number":923,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"DateTimeObj should validate timestamps too.","closed_at":"2011-12-02T10:19:04Z","html_url":"https://github.com/symphonycms/symphony-2/issues/923","url":"https://api.github.com/repos/symphonycms/symphony-2/issues/923","milestone":null},"action":"closed"}