fixes date localization