prestomation/SOSpy — Issue #10: Better dates for SpyInfo
Author: prestomation
Created: 2012-02-27 15:07:00+00:00
State: open

Currently, when a new SpyInfo is uploaded to the server, the server saves its current time as the date, which is not exactly the date the event happened. This can be done better.

The spy POST api should accept a new datetime variable, probably as second since the epoch. This will be optional, so that if it is missing, the server resorts to the old behavior.

Each kind of data in the spy app is responsible for collecting the actual event datetime. If it is not possible, it can simply not report a datetime and the server will provide aforementioned sane defaults.

For SMS for instance, I'm assuming the content provider stores a datetime which can simply be uploaded to the server.