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.
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'stst
field, converts it to a myql-compatible timestamp format, and saves it in the dt column.