owntracks / booklet

The definitive OwnTracks documentation
http://owntracks.org/booklet/
43 stars 59 forks source link

Save timestamp in sample HTTP endpoint #34

Closed thatblairguy closed 6 years ago

thatblairguy commented 6 years ago

The sample HTTP endpoint defines a column (dt) of type TIMESTAMP in the locations table, but doesn't store a value in it. This modification captures the POST request's tst field, converts it to a myql-compatible timestamp format, and saves it in the dt column.

jpmens commented 6 years ago

Merged, thank you.