{"action":"closed","issue":{"url":"https://api.github.com/repos/haskell/directory/issues/32","labels_url":"https://api.github.com/repos/haskell/directory/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/haskell/directory/issues/32/comments","events_url":"https://api.github.com/repos/haskell/directory/issues/32/events","html_url":"https://github.com/haskell/directory/issues/32","id":101389124,"number":32,"title":"setModificationTime gives wrong results when cross-compiling","user":{"login":"ariep","id":11683494,"avatar_url":"https://avatars.githubusercontent.com/u/11683494?v=3","gravatar_id":"","url":"https://api.github.com/users/ariep","html_url":"https://github.com/ariep","followers_url":"https://api.github.com/users/ariep/followers","following_url":"https://api.github.com/users/ariep/following{/other_user}","gists_url":"https://api.github.com/users/ariep/gists{/gist_id}","starred_url":"https://api.github.com/users/ariep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariep/subscriptions","organizations_url":"https://api.github.com/users/ariep/orgs","repos_url":"https://api.github.com/users/ariep/repos","events_url":"https://api.github.com/users/ariep/events{/privacy}","received_events_url":"https://api.github.com/users/ariep/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-08-17T10:24:23Z","updated_at":"2015-08-20T11:54:27Z","closed_at":"2015-08-20T11:54:27Z","body":"The following test program\r\n```haskell\r\nmodule Main where\r\n\r\nimport qualified System.Directory as D\r\n\r\nmain :: IO ()\r\nmain = do\r\n  u <- D.getModificationTime \"test\"\r\n  print u\r\n  D.setModificationTime \"test\" u\r\n```\r\ncompiled with directory 1.2.3.1 from github (commit 17546891), gives the expected result when compiled and run on my amd64 desktop. However, when cross-compiling and running on my raspberry pi, this gives wrong results:\r\n```\r\narie@r3 ~ $ ls -l test\r\n-rw-rw-r-- 1 arie arie 0 Aug 17 12:07 test\r\narie@r3 ~ $ ./setModificationTime-test \r\n2015-08-17 10:07:50.565253803 UTC\r\narie@r3 ~ $ ls -l test\r\n-rw-rw-r-- 1 arie arie 0 Jan 10  2004 test\r\n```\r\n(The getModificationTime is OK: I'm at UTC+2 currently.)\r\n\r\nThe compiler is ghc-7.10.2 in both cases."}}