set proper timestamp