{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/31379","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/31379/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/31379/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/31379/events","html_url":"https://github.com/dotnet/corefx/issues/31379","id":344652713,"node_id":"MDU6SXNzdWUzNDQ2NTI3MTM=","number":31379,"title":"File.SetLastAccessTimeUtc on Ubuntu is only up to seconds","user":{"login":"wli3","id":6993335,"node_id":"MDQ6VXNlcjY5OTMzMzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6993335?v=4","gravatar_id":"","url":"https://api.github.com/users/wli3","html_url":"https://github.com/wli3","followers_url":"https://api.github.com/users/wli3/followers","following_url":"https://api.github.com/users/wli3/following{/other_user}","gists_url":"https://api.github.com/users/wli3/gists{/gist_id}","starred_url":"https://api.github.com/users/wli3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wli3/subscriptions","organizations_url":"https://api.github.com/users/wli3/orgs","repos_url":"https://api.github.com/users/wli3/repos","events_url":"https://api.github.com/users/wli3/events{/privacy}","received_events_url":"https://api.github.com/users/wli3/received_events","type":"User","site_admin":false},"labels":[{"id":154422420,"node_id":"MDU6TGFiZWwxNTQ0MjI0MjA=","url":"https://api.github.com/repos/dotnet/corefx/labels/area-System.IO","name":"area-System.IO","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":{"login":"Anipik","id":10516582,"node_id":"MDQ6VXNlcjEwNTE2NTgy","avatar_url":"https://avatars1.githubusercontent.com/u/10516582?v=4","gravatar_id":"","url":"https://api.github.com/users/Anipik","html_url":"https://github.com/Anipik","followers_url":"https://api.github.com/users/Anipik/followers","following_url":"https://api.github.com/users/Anipik/following{/other_user}","gists_url":"https://api.github.com/users/Anipik/gists{/gist_id}","starred_url":"https://api.github.com/users/Anipik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anipik/subscriptions","organizations_url":"https://api.github.com/users/Anipik/orgs","repos_url":"https://api.github.com/users/Anipik/repos","events_url":"https://api.github.com/users/Anipik/events{/privacy}","received_events_url":"https://api.github.com/users/Anipik/received_events","type":"User","site_admin":false},"assignees":[{"login":"Anipik","id":10516582,"node_id":"MDQ6VXNlcjEwNTE2NTgy","avatar_url":"https://avatars1.githubusercontent.com/u/10516582?v=4","gravatar_id":"","url":"https://api.github.com/users/Anipik","html_url":"https://github.com/Anipik","followers_url":"https://api.github.com/users/Anipik/followers","following_url":"https://api.github.com/users/Anipik/following{/other_user}","gists_url":"https://api.github.com/users/Anipik/gists{/gist_id}","starred_url":"https://api.github.com/users/Anipik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anipik/subscriptions","organizations_url":"https://api.github.com/users/Anipik/orgs","repos_url":"https://api.github.com/users/Anipik/repos","events_url":"https://api.github.com/users/Anipik/events{/privacy}","received_events_url":"https://api.github.com/users/Anipik/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/corefx/milestones/21","html_url":"https://github.com/dotnet/corefx/milestone/21","labels_url":"https://api.github.com/repos/dotnet/corefx/milestones/21/labels","id":3242632,"node_id":"MDk6TWlsZXN0b25lMzI0MjYzMg==","number":21,"title":"3.0","description":".NET Core 3.0, next major release after 2.1. See [official release dates](https://github.com/dotnet/core/blob/master/roadmap.md) for details.\r\n\r\nWe will move important issues from Future to 3.0 as the priorities and dates for next release become more clear.","creator":{"login":"karelz","id":5776068,"node_id":"MDQ6VXNlcjU3NzYwNjg=","avatar_url":"https://avatars2.githubusercontent.com/u/5776068?v=4","gravatar_id":"","url":"https://api.github.com/users/karelz","html_url":"https://github.com/karelz","followers_url":"https://api.github.com/users/karelz/followers","following_url":"https://api.github.com/users/karelz/following{/other_user}","gists_url":"https://api.github.com/users/karelz/gists{/gist_id}","starred_url":"https://api.github.com/users/karelz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karelz/subscriptions","organizations_url":"https://api.github.com/users/karelz/orgs","repos_url":"https://api.github.com/users/karelz/repos","events_url":"https://api.github.com/users/karelz/events{/privacy}","received_events_url":"https://api.github.com/users/karelz/received_events","type":"User","site_admin":false},"open_issues":186,"closed_issues":1707,"state":"open","created_at":"2018-04-04T16:40:10Z","updated_at":"2018-08-21T01:50:24Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2018-07-26T00:30:16Z","updated_at":"2018-08-21T01:50:24Z","closed_at":"2018-08-21T01:50:24Z","author_association":"NONE","body":"Similar to https://github.com/dotnet/corefx/issues/26024 but for write\r\n\r\nThis blocks using msbuild incremental build. Especially when using MemoryMappedFile, LastWriteTime will not be set automatically\r\n\r\n```c#\r\nusing System;\r\nusing System.IO;\r\n\r\nnamespace testLastAccess\r\n{\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            File.WriteAllText(\"file_reference\", \"\");\r\n            File.WriteAllText(\"file_change_lastaccess\", \"\");\r\n\r\n            File.SetLastAccessTimeUtc(\"file_change_lastaccess\", DateTime.UtcNow);\r\n\r\n            Console.WriteLine(File.GetLastWriteTimeUtc(\"file_reference\").Ticks + \" file_reference\");\r\n            Console.WriteLine(File.GetLastWriteTimeUtc(\"file_change_lastaccess\").Ticks  + \" file_change_lastaccess\");\r\n        }\r\n    }\r\n}\r\n```\r\n\r\non Ubuntu\r\n```\r\nwul@willauzrelinux3:~/test/testSetFileLastAccessTime$ dotnet run\r\n636681614066249674 file_reference\r\n636681614060000000 file_change_lastaccess\r\n```\r\n\r\nfile_change_lastaccess has SetLastAccessTimeUtc after file_reference is created. But end up easier than file_reference. And clearly, the ticks are rounded.\r\n\r\non Windows it is correct\r\n```\r\nλ  dotnet run\r\n636681613739905306 file_reference\r\n636681613739915309 file_change_lastaccess\r\n```"}}
{"actor":{"display_login":"karelz"}}