fix bug in post endpoint relating to timestamp parsing