Fix to timestamp setting code.