13 Star 0 Fork 1

ocs-upgrade/langtable

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
5002-Add-new-timezone-Asia-Beijing.patch 3.07 KB
一键复制 编辑 原始数据 按行查看 历史
nilusyi 提交于 2023-02-22 17:41 . OCS package init
From 5704173791bfb587365b2e80885c0d2ebd24d825 Mon Sep 17 00:00:00 2001
From: Xiaojie Chen <jackxjchen@tencent.com>
Date: Wed, 1 Feb 2023 16:44:11 +0800
Subject: [PATCH] Add new timezone Asia/Beijing
---
langtable/data/languages.xml | 5 ++++-
langtable/data/territories.xml | 2 +-
langtable/data/timezoneidparts.xml | 7 +++++++
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/langtable/data/languages.xml b/langtable/data/languages.xml
index 3004e1e..be6ae7f 100644
--- a/langtable/data/languages.xml
+++ b/langtable/data/languages.xml
@@ -163,6 +163,7 @@
<consolefont><consolefontId>eurlatgr</consolefontId><rank>1000</rank></consolefont>
</consolefonts>
<timezones>
+ <timezone><timezoneId>Asia/Beijing</timezoneId><rank>1000</rank></timezone>
<timezone><timezoneId>Asia/Shanghai</timezoneId><rank>900</rank></timezone>
<timezone><timezoneId>Asia/Taipei</timezoneId><rank>20</rank></timezone>
<timezone><timezoneId>Asia/Hong_Kong</timezoneId><rank>19</rank></timezone>
@@ -200,6 +201,7 @@
<consolefont><consolefontId>eurlatgr</consolefontId><rank>1000</rank></consolefont>
</consolefonts>
<timezones>
+ <timezone><timezoneId>Asia/Beijing</timezoneId><rank>100</rank></timezone>
<timezone><timezoneId>Asia/Shanghai</timezoneId><rank>20</rank></timezone>
<timezone><timezoneId>Asia/Singapore</timezoneId><rank>19</rank></timezone>
</timezones>
@@ -232,7 +234,8 @@
<consolefont><consolefontId>eurlatgr</consolefontId><rank>1000</rank></consolefont>
</consolefonts>
<timezones>
- <timezone><timezoneId>Asia/Shanghai</timezoneId><rank>1000</rank></timezone>
+ <timezone><timezoneId>Asia/Beijing</timezoneId><rank>1000</rank></timezone>
+ <timezone><timezoneId>Asia/Shanghai</timezoneId><rank>900</rank></timezone>
</timezones>
</language>
</languages>
diff --git a/langtable/data/territories.xml b/langtable/data/territories.xml
index 71c8355..d7d802f 100644
--- a/langtable/data/territories.xml
+++ b/langtable/data/territories.xml
@@ -11175,7 +11175,7 @@
<consolefont><consolefontId>eurlatgr</consolefontId><rank>1000</rank></consolefont>
</consolefonts>
<timezones>
- <timezone><timezoneId>Asia/Shanghai</timezoneId><rank>1000</rank></timezone>
+ <timezone><timezoneId>Asia/Beijing</timezoneId><rank>1000</rank></timezone>
</timezones>
</territory>
<territory>
diff --git a/langtable/data/timezoneidparts.xml b/langtable/data/timezoneidparts.xml
index 3535af2..a8ce6e4 100644
--- a/langtable/data/timezoneidparts.xml
+++ b/langtable/data/timezoneidparts.xml
@@ -5165,6 +5165,13 @@
<name><languageId>zu</languageId><trName>i-Barbados</trName></name>
</names>
</timezoneIdPart>
+ <timezoneIdPart>
+ <timezoneIdPartId>Beijing</timezoneIdPartId>
+ <names>
+ <name><languageId>en</languageId><trName>Beijing</trName></name>
+ <name><languageId>zh</languageId><trName>北京</trName></name>
+ </names>
+ </timezoneIdPart>
<timezoneIdPart>
<timezoneIdPartId>Beirut</timezoneIdPartId>
<names>
--
2.37.3
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-upgrade/langtable.git
git@gitee.com:ocs-upgrade/langtable.git
ocs-upgrade
langtable
langtable
master

搜索帮助