fix Date object