MDL-42537 calendar: locale charset on windows will come from calendartype

date_format_string() will now convert date on windows based on calendar type used