News for hackers. Stuff that matters.
Re:Show HN: An easy way to convert time by eyelidlessness on Thursday June 29, 2017 @03:39PM (#14666238)
It's not clear how it detects which type you've passed, but this is pretty unexpected:

https://api.epoch.sh/-100

`{"local":"0099-12-31T16:00:00-08:00","unix":-59011459200,"utc":"0100-01-01T00:00:00Z"}`

This too:

https://api.epoch.sh/8675309

`{"local":"8675-11-04T16:00:00-08:00","unix":211615977600,"utc":"8675-11-05T00:00:00Z"}`

Re:Show HN: An easy way to convert time by Prefinem on Thursday June 29, 2017 @05:29PM (#14666993)
This should be fixed now. As others pointed out, had some bad validation
Re:Show HN: An easy way to convert time by eyelidlessness on Thursday June 29, 2017 @05:29PM (#14666999)
Why is `-100` invalid?
Re:Show HN: An easy way to convert time by Prefinem on Thursday June 29, 2017 @05:55PM (#14667172)
You know, I have no idea why I even checked for < 0 since it's seconds backwards since epoch. Just a mental snag I guess