openharmony 鸿蒙 changelogs-i18n

2026-08-25 浏览 (1)

Globalization Subsystem Changelog

cl.global.1 Change in the Default Calendar of Thailand, Saudi Arabia, Afghanistan, and Iran

Access Level

Public API

Reason for the Change

The default calendar of Thailand, Saudi Arabia, Afghanistan, and Iran is incorrect.

Impact of the Change

This change does not require application adaptation.

Before change: The default calendar of Thailand is Buddhist calendar, that of Saudi Arabia is Islamic calendar, and that of Afghanistan and Iran is Persian calendar. For example, if Thailand is specified as the country/region when intl.DateTimeFormat is called, the Buddhist calendar will be used to display the date when format is called.

After change: The default calendar of Thailand, Saudi Arabia, Afghanistan, and Iran is the Gregorian calendar. For example, if Thailand is specified as the country/region when intl.DateTimeFormat is called, the Gregorian calendar will be used to display the date when format is called.

Start API Level

API 8

Change Since

OpenHarmony SDK 6.0.0.40

Key API/Component Changes

FileAPI
@ohos.intl.d.tsintl.DateTimeFormat.prototype.format
@ohos.intl.d.tsintl.DateTimeFormat.prototype.formatRange
@ohos.i18n.d.tsi18n.Calendar.prototype.getDisplayName
@ohos.i18n.d.tsi18n.Calendar.prototype.get

Adaptation Guide

Only the calendar internally used by the API is changed. Adaptation is not needed.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 changelogs-player_framework

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/184IZfar