{"action":"opened","issue":{"url":"https://api.github.com/repos/malcommac/SwiftDate/issues/226","repository_url":"https://api.github.com/repos/malcommac/SwiftDate","labels_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/226/comments","events_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/226/events","html_url":"https://github.com/malcommac/SwiftDate/issues/226","id":165280219,"number":226,"title":"getting nil from custom format","user":{"login":"ilandbt","id":2613779,"avatar_url":"https://avatars.githubusercontent.com/u/2613779?v=3","gravatar_id":"","url":"https://api.github.com/users/ilandbt","html_url":"https://github.com/ilandbt","followers_url":"https://api.github.com/users/ilandbt/followers","following_url":"https://api.github.com/users/ilandbt/following{/other_user}","gists_url":"https://api.github.com/users/ilandbt/gists{/gist_id}","starred_url":"https://api.github.com/users/ilandbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilandbt/subscriptions","organizations_url":"https://api.github.com/users/ilandbt/orgs","repos_url":"https://api.github.com/users/ilandbt/repos","events_url":"https://api.github.com/users/ilandbt/events{/privacy}","received_events_url":"https://api.github.com/users/ilandbt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-13T09:46:18Z","updated_at":"2016-07-13T09:46:18Z","closed_at":null,"body":"Hi,\r\nI'm getting a utc date from my server.\r\nlocally i'm in a different time zone.\r\n\r\n```swift\r\nlet stringDate = \"2016-07-14T04:00:00.000Z\"\r\nlet date = stringDate.toDate(.Custom(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\"))\r\n```\r\nIn this case date is nil\r\n\r\nThe other way it works (NSDate to string)\r\n```swift\r\nlet stringDate = NSDate().toString(.Custom(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\"))\r\n```\r\n\r\nThanks\r\n"}}
{"actor":{"display_login":"ilandbt"}}