Fix milliseconds lost in timestamp