alloy / lowdown

A Ruby client for the HTTP/2 version of the Apple Push Notification Service.
MIT License
120 stars 15 forks source link

timestamp of inactive token is returned as milliseconds, not seconds #24

Closed mkonecny closed 8 years ago

alloy commented 8 years ago

After a quick search through the docs, I’m not sure what I based my version on, I don’t see any detail mentioned at all :-/

I assume you base this off of real observation?

mkonecny commented 8 years ago

Yes, in my logs I kept seeing dates like 48362-07-02 15:46:40 -0400. As soon as I modified the code to assume the timestamp was in ms, the correct dates started appearing.

alloy commented 8 years ago

Perfect, thanks 👍