{"action":"created","issue":{"url":"https://api.github.com/repos/moment/luxon/issues/345","repository_url":"https://api.github.com/repos/moment/luxon","labels_url":"https://api.github.com/repos/moment/luxon/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/moment/luxon/issues/345/comments","events_url":"https://api.github.com/repos/moment/luxon/issues/345/events","html_url":"https://github.com/moment/luxon/issues/345","id":367977294,"node_id":"MDU6SXNzdWUzNjc5NzcyOTQ=","number":345,"title":"DateTime.fromMillis returns wrong date","user":{"login":"noise-machines","id":5033974,"node_id":"MDQ6VXNlcjUwMzM5NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5033974?v=4","gravatar_id":"","url":"https://api.github.com/users/noise-machines","html_url":"https://github.com/noise-machines","followers_url":"https://api.github.com/users/noise-machines/followers","following_url":"https://api.github.com/users/noise-machines/following{/other_user}","gists_url":"https://api.github.com/users/noise-machines/gists{/gist_id}","starred_url":"https://api.github.com/users/noise-machines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noise-machines/subscriptions","organizations_url":"https://api.github.com/users/noise-machines/orgs","repos_url":"https://api.github.com/users/noise-machines/repos","events_url":"https://api.github.com/users/noise-machines/events{/privacy}","received_events_url":"https://api.github.com/users/noise-machines/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-08T22:40:47Z","updated_at":"2018-10-08T22:49:29Z","closed_at":"2018-10-08T22:49:29Z","author_association":"NONE","body":"Hi folks,\r\n\r\nThanks for your hard work on this excellent library. Just noticed some strange behavior and wanted to report it. DateTime.fromMillis seems to be returning the wrong date:\r\n\r\n```js\r\nconst { DateTime } = require('luxon') // v1.4.3\r\nconst dt = DateTime.fromMillis(1539010429)\r\nconsole.log(dt.year) // => 1970\r\n```\r\n\r\nHowever, when I run the same timestamp through other Unix timestamp converters (e.g. [this one](https://www.epochconverter.com/) or [this one](https://www.unixtimestamp.com/)) I get the correct value: October 8, 2018.\r\n\r\nHere's [a RunKit embed](https://runkit.com/embed/kp482dqijf18) reproducing the problem. I see the same issue on 6.x, 8.x, and 10.x versions of Node.\r\n\r\nLet me know if I can help with anything else!\r\n\r\nCheers,\r\nThomas"},"comment":{"url":"https://api.github.com/repos/moment/luxon/issues/comments/428003756","html_url":"https://github.com/moment/luxon/issues/345#issuecomment-428003756","issue_url":"https://api.github.com/repos/moment/luxon/issues/345","id":428003756,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODAwMzc1Ng==","user":{"login":"noise-machines","id":5033974,"node_id":"MDQ6VXNlcjUwMzM5NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5033974?v=4","gravatar_id":"","url":"https://api.github.com/users/noise-machines","html_url":"https://github.com/noise-machines","followers_url":"https://api.github.com/users/noise-machines/followers","following_url":"https://api.github.com/users/noise-machines/following{/other_user}","gists_url":"https://api.github.com/users/noise-machines/gists{/gist_id}","starred_url":"https://api.github.com/users/noise-machines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noise-machines/subscriptions","organizations_url":"https://api.github.com/users/noise-machines/orgs","repos_url":"https://api.github.com/users/noise-machines/repos","events_url":"https://api.github.com/users/noise-machines/events{/privacy}","received_events_url":"https://api.github.com/users/noise-machines/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T22:49:29Z","updated_at":"2018-10-08T22:49:29Z","author_association":"NONE","body":"Did a little more research, and I realized that the API I was working with was returning *seconds* since the epoch, not milliseconds. The other services were following the same convention.\r\n\r\nClosing. Apologies for any inconvenience."}}
{"actor":{"display_login":"noise-machines"}}