Fixes date format problem