{"action":"created","issue":{"url":"https://api.github.com/repos/RobThree/TwoFactorAuth.Net/issues/6","repository_url":"https://api.github.com/repos/RobThree/TwoFactorAuth.Net","labels_url":"https://api.github.com/repos/RobThree/TwoFactorAuth.Net/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/RobThree/TwoFactorAuth.Net/issues/6/comments","events_url":"https://api.github.com/repos/RobThree/TwoFactorAuth.Net/issues/6/events","html_url":"https://github.com/RobThree/TwoFactorAuth.Net/issues/6","id":329932639,"node_id":"MDU6SXNzdWUzMjk5MzI2Mzk=","number":6,"title":"Question:  Are timeslices opaque?","user":{"login":"lellis1936","id":15078535,"node_id":"MDQ6VXNlcjE1MDc4NTM1","avatar_url":"https://avatars0.githubusercontent.com/u/15078535?v=4","gravatar_id":"","url":"https://api.github.com/users/lellis1936","html_url":"https://github.com/lellis1936","followers_url":"https://api.github.com/users/lellis1936/followers","following_url":"https://api.github.com/users/lellis1936/following{/other_user}","gists_url":"https://api.github.com/users/lellis1936/gists{/gist_id}","starred_url":"https://api.github.com/users/lellis1936/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lellis1936/subscriptions","organizations_url":"https://api.github.com/users/lellis1936/orgs","repos_url":"https://api.github.com/users/lellis1936/repos","events_url":"https://api.github.com/users/lellis1936/events{/privacy}","received_events_url":"https://api.github.com/users/lellis1936/received_events","type":"User","site_admin":false},"labels":[{"id":288662734,"node_id":"MDU6TGFiZWwyODg2NjI3MzQ=","url":"https://api.github.com/repos/RobThree/TwoFactorAuth.Net/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"RobThree","id":607888,"node_id":"MDQ6VXNlcjYwNzg4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/607888?v=4","gravatar_id":"","url":"https://api.github.com/users/RobThree","html_url":"https://github.com/RobThree","followers_url":"https://api.github.com/users/RobThree/followers","following_url":"https://api.github.com/users/RobThree/following{/other_user}","gists_url":"https://api.github.com/users/RobThree/gists{/gist_id}","starred_url":"https://api.github.com/users/RobThree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobThree/subscriptions","organizations_url":"https://api.github.com/users/RobThree/orgs","repos_url":"https://api.github.com/users/RobThree/repos","events_url":"https://api.github.com/users/RobThree/events{/privacy}","received_events_url":"https://api.github.com/users/RobThree/received_events","type":"User","site_admin":false},"assignees":[{"login":"RobThree","id":607888,"node_id":"MDQ6VXNlcjYwNzg4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/607888?v=4","gravatar_id":"","url":"https://api.github.com/users/RobThree","html_url":"https://github.com/RobThree","followers_url":"https://api.github.com/users/RobThree/followers","following_url":"https://api.github.com/users/RobThree/following{/other_user}","gists_url":"https://api.github.com/users/RobThree/gists{/gist_id}","starred_url":"https://api.github.com/users/RobThree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobThree/subscriptions","organizations_url":"https://api.github.com/users/RobThree/orgs","repos_url":"https://api.github.com/users/RobThree/repos","events_url":"https://api.github.com/users/RobThree/events{/privacy}","received_events_url":"https://api.github.com/users/RobThree/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-06-06T16:00:34Z","updated_at":"2018-06-06T16:12:20Z","closed_at":null,"author_association":"NONE","body":"The new option to return timeslice after successful validation is great.  I was wondering if a client app could make any assumptions about the value.   For example, I would like to be able to get the datetime associated with the timeslice.  Tentatively, I have coded this:\r\n```\r\npublic DateTime GetUtcDateTimeForTimeSlice(long timeslice)\r\n{\r\n    long unixTimeStamp = timeslice * PERIOD;\r\n\r\n    // Unix timestamp is seconds past epoch\r\n    System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);\r\n    dtDateTime = dtDateTime.AddSeconds(unixTimeStamp);\r\n\r\n    return dtDateTime;\r\n\r\n}\r\n```\r\nCertainly, not asking for anything new in the library because it's fine as-is, but wondering if you think interpreting the meaning of the timeslice in this way is acceptable."},"comment":{"url":"https://api.github.com/repos/RobThree/TwoFactorAuth.Net/issues/comments/395125919","html_url":"https://github.com/RobThree/TwoFactorAuth.Net/issues/6#issuecomment-395125919","issue_url":"https://api.github.com/repos/RobThree/TwoFactorAuth.Net/issues/6","id":395125919,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTEyNTkxOQ==","user":{"login":"lellis1936","id":15078535,"node_id":"MDQ6VXNlcjE1MDc4NTM1","avatar_url":"https://avatars0.githubusercontent.com/u/15078535?v=4","gravatar_id":"","url":"https://api.github.com/users/lellis1936","html_url":"https://github.com/lellis1936","followers_url":"https://api.github.com/users/lellis1936/followers","following_url":"https://api.github.com/users/lellis1936/following{/other_user}","gists_url":"https://api.github.com/users/lellis1936/gists{/gist_id}","starred_url":"https://api.github.com/users/lellis1936/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lellis1936/subscriptions","organizations_url":"https://api.github.com/users/lellis1936/orgs","repos_url":"https://api.github.com/users/lellis1936/repos","events_url":"https://api.github.com/users/lellis1936/events{/privacy}","received_events_url":"https://api.github.com/users/lellis1936/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T16:12:20Z","updated_at":"2018-06-06T16:12:20Z","author_association":"NONE","body":"We always use 30.   Besides, without knowing the right period for a user we couldn't generate a valid codestream anyway.   Not currently storing it, but I don't see it changing and it if did we could add it to the database then..."}}
{"actor":{"display_login":"lellis1936"}}