Fix device api date encoding.

Cheshire beats data.json again.
Merge pull request #154 from MastodonC/feature/fix-device-api

Fix device api date encoding.