handle locale for dates