date_time: fix locale bug and Calendar bug