NXP-14169: compute locale for date format properly