Get correct timestamp