Save timestamp properly