{"action":"created","issue":{"url":"https://api.github.com/repos/boto/boto3/issues/1476","repository_url":"https://api.github.com/repos/boto/boto3","labels_url":"https://api.github.com/repos/boto/boto3/issues/1476/labels{/name}","comments_url":"https://api.github.com/repos/boto/boto3/issues/1476/comments","events_url":"https://api.github.com/repos/boto/boto3/issues/1476/events","html_url":"https://github.com/boto/boto3/issues/1476","id":303375782,"number":1476,"title":"Cloud Directory date fields lose milli/microseconds on saving or loading","user":{"login":"tuukkamustonen","id":94327,"avatar_url":"https://avatars1.githubusercontent.com/u/94327?v=4","gravatar_id":"","url":"https://api.github.com/users/tuukkamustonen","html_url":"https://github.com/tuukkamustonen","followers_url":"https://api.github.com/users/tuukkamustonen/followers","following_url":"https://api.github.com/users/tuukkamustonen/following{/other_user}","gists_url":"https://api.github.com/users/tuukkamustonen/gists{/gist_id}","starred_url":"https://api.github.com/users/tuukkamustonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuukkamustonen/subscriptions","organizations_url":"https://api.github.com/users/tuukkamustonen/orgs","repos_url":"https://api.github.com/users/tuukkamustonen/repos","events_url":"https://api.github.com/users/tuukkamustonen/events{/privacy}","received_events_url":"https://api.github.com/users/tuukkamustonen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-08T06:56:29Z","updated_at":"2018-03-10T16:44:41Z","closed_at":"2018-03-08T21:32:58Z","author_association":"NONE","body":"It would seem that boto3 truncates milliseconds away from CloudDirectory date fields.\r\n \r\nI’m sending in something like:\r\n\r\n```python\r\nnow = datetime.datetime.utcnow()\r\n# Set it as {'DatetimeValue': now} in payload\r\n```\r\n\r\nThe time is for example:\r\n \r\n    2018-02-27 07:58:21.154748\r\n \r\nBut when I load up the value from directory, I get datetime object with just:\r\n \r\n    2018-02-27 09:58:21+02:00\r\n \r\n(Don’t care about tz here – just trying to illustrate the problem.)\r\n \r\nSo milli/microseconds are lost. I don’t know if this problem occurs when saving or loading."},"comment":{"url":"https://api.github.com/repos/boto/boto3/issues/comments/372043818","html_url":"https://github.com/boto/boto3/issues/1476#issuecomment-372043818","issue_url":"https://api.github.com/repos/boto/boto3/issues/1476","id":372043818,"user":{"login":"tuukkamustonen","id":94327,"avatar_url":"https://avatars1.githubusercontent.com/u/94327?v=4","gravatar_id":"","url":"https://api.github.com/users/tuukkamustonen","html_url":"https://github.com/tuukkamustonen","followers_url":"https://api.github.com/users/tuukkamustonen/followers","following_url":"https://api.github.com/users/tuukkamustonen/following{/other_user}","gists_url":"https://api.github.com/users/tuukkamustonen/gists{/gist_id}","starred_url":"https://api.github.com/users/tuukkamustonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuukkamustonen/subscriptions","organizations_url":"https://api.github.com/users/tuukkamustonen/orgs","repos_url":"https://api.github.com/users/tuukkamustonen/repos","events_url":"https://api.github.com/users/tuukkamustonen/events{/privacy}","received_events_url":"https://api.github.com/users/tuukkamustonen/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T16:44:41Z","updated_at":"2018-03-10T16:44:41Z","author_association":"NONE","body":"Java and JavaScript SDKs support milli/microsecond precision (can't remember which one as I don't have a test at hand right now). AWS support asked me to open this ticket so I think it's relevant. AFAIK date fields are simply stored/read as strings, so supporting millis/micros shouldn't be a problem."}}
{"actor":{"display_login":"tuukkamustonen"}}