Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
46c770c2
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
46c770c2
编写于
6月 24, 2018
作者:
A
alitvinov
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
71647564
4c7159f7
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
299 addition
and
47 deletion
+299
-47
.hgtags
.hgtags
+3
-0
make/data/tzdata/VERSION
make/data/tzdata/VERSION
+1
-1
make/data/tzdata/africa
make/data/tzdata/africa
+33
-6
make/data/tzdata/asia
make/data/tzdata/asia
+16
-2
make/data/tzdata/australasia
make/data/tzdata/australasia
+9
-0
make/data/tzdata/europe
make/data/tzdata/europe
+25
-13
src/share/classes/java/io/ObjectInputStream.java
src/share/classes/java/io/ObjectInputStream.java
+5
-3
test/java/io/Serializable/serialFilter/CheckArrayTest.java
test/java/io/Serializable/serialFilter/CheckArrayTest.java
+123
-0
test/sun/util/calendar/zi/tzdata/VERSION
test/sun/util/calendar/zi/tzdata/VERSION
+1
-1
test/sun/util/calendar/zi/tzdata/africa
test/sun/util/calendar/zi/tzdata/africa
+33
-6
test/sun/util/calendar/zi/tzdata/asia
test/sun/util/calendar/zi/tzdata/asia
+16
-2
test/sun/util/calendar/zi/tzdata/australasia
test/sun/util/calendar/zi/tzdata/australasia
+9
-0
test/sun/util/calendar/zi/tzdata/europe
test/sun/util/calendar/zi/tzdata/europe
+25
-13
未找到文件。
.hgtags
浏览文件 @
46c770c2
...
...
@@ -907,3 +907,6 @@ f34c24087b0e6f52391f491d6c3a608616d1db2c jdk8u181-b05
076f5fd6258846fce7010a598de2c7583628bb1e jdk8u181-b06
446351642449411566d7fd0a26e32c8825f4f03e jdk8u181-b07
f26f68978e0e7ed0e6e61f9d64fa2d06f1c1a24c jdk8u181-b08
71b4f630e5225b9dcb939325f1a2ee0d04dc98f6 jdk8u181-b09
1f7b9ad2c572fe2c905a771bac15f252e374c2c6 jdk8u181-b10
112f3576f12e24d5e35d8d31782698e7d9a8fa52 jdk8u181-b11
make/data/tzdata/VERSION
浏览文件 @
46c770c2
...
...
@@ -21,4 +21,4 @@
# or visit www.oracle.com if you need additional information or have any
# questions.
#
tzdata2018
d
tzdata2018
e
make/data/tzdata/africa
浏览文件 @
46c770c2
...
...
@@ -29,7 +29,7 @@
# tz@iana.org for general use in the future). For more, please see
# the file CONTRIBUTING in the tz distribution.
# From Paul Eggert (2017-0
2-20
):
# From Paul Eggert (2017-0
4-09
):
#
# Unless otherwise specified, the source for data through 1990 is:
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
...
...
@@ -75,7 +75,7 @@
# cannot now come up with solid citations.
#
# I invented the following abbreviations; corrections are welcome!
# +02 WAST West Africa Summer Time
# +02 WAST West Africa Summer Time
(no longer used)
# +03 CAST Central Africa Summer Time (no longer used)
# +03 SAST South Africa Summer Time (no longer used)
# +03 EAT East Africa Time
...
...
@@ -990,6 +990,10 @@ Link Africa/Maputo Africa/Lusaka # Zambia
# commence at OOhOO on Monday 21 March 1994 and shall end at 02h00 on
# Sunday 4 September 1994.
# From Michael Deckers (2017-04-06):
# ... both summer and winter time are called "standard"
# (which differs from the use in Ireland) ...
# From Petronella Sibeene (2007-03-30):
# http://allafrica.com/stories/200703300178.html
# While the entire country changes its time, Katima Mulilo and other
...
...
@@ -1015,19 +1019,42 @@ Link Africa/Maputo Africa/Lusaka # Zambia
# the same time they would normally start DST, the first Sunday in September:
# https://www.timeanddate.com/news/time/namibia-new-time-zone.html
# From Paul Eggert (2017-04-09):
# Before the change, summer and winter time were both standard time legally.
# However in common parlance, winter time was considered to be DST. See, e.g.:
# http://www.nbc.na/news/namibias-winter-time-could-be-scrapped.2706
# https://zone.my.na/news/times-are-changing-in-namibia
# https://www.newera.com.na/2017/02/23/namibias-winter-time-might-be-repealed/
# Use plain "WAT" and "CAT" for the time zone abbreviations, to be compatible
# with Namibia's neighbors.
# RULE NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Namibia 1994 only - Mar 21 0:00 0 -
Rule Namibia 1994 2016 - Sep Sun>=1 2:00 1:00 S
Rule Namibia 1995 2017 - Apr Sun>=1 2:00 0 -
# Vanguard section, for zic and other parsers that support negative DST.
#Rule Namibia 1994 only - Mar 21 0:00 -1:00 WAT
#Rule Namibia 1994 2017 - Sep Sun>=1 2:00 0 CAT
#Rule Namibia 1995 2017 - Apr Sun>=1 2:00 -1:00 WAT
# Rearguard section, for parsers that do not support negative DST.
Rule Namibia 1994 only - Mar 21 0:00 0 WAT
Rule Namibia 1994 2017 - Sep Sun>=1 2:00 1:00 CAT
Rule Namibia 1995 2017 - Apr Sun>=1 2:00 0 WAT
# End of rearguard section.
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Windhoek 1:08:24 - LMT 1892 Feb 8
1:30 - +0130 1903 Mar
2:00 - SAST 1942 Sep 20 2:00
2:00 1:00 SAST 1943 Mar 21 2:00
2:00 - SAST 1990 Mar 21 # independence
# Vanguard section, for zic and other parsers that support negative DST.
# 2:00 Namibia %s
# Rearguard section, for parsers that do not support negative DST.
2:00 - CAT 1994 Mar 21 0:00
1:00 Namibia WA%sT 2017 Sep 3 2:00
# From Paul Eggert (2017-04-07):
# The official date of the 2017 rule change was 2017-10-24. See:
# http://www.lac.org.na/laws/annoSTAT/Namibian%20Time%20Act%209%20of%202017.pdf
1:00 Namibia %s 2017 Oct 24
2:00 - CAT
# End of rearguard section.
# Niger
# See Africa/Lagos.
...
...
make/data/tzdata/asia
浏览文件 @
46c770c2
...
...
@@ -2006,6 +2006,19 @@ Rule ROK 1987 1988 - Oct Sun>=8 3:00 0 S
# There is no common English-language abbreviation for this time zone.
# Use KST, as that's what we already use for 1954-1961 in ROK.
# From Kang Seonghoon (2018-04-29):
# North Korea will revert its time zone from UTC+8:30 (PYT; Pyongyang
# Time) back to UTC+9 (KST; Korea Standard Time).
#
# From Seo Sanghyeon (2018-04-30):
# Rodong Sinmun 2018-04-30 announced Pyongyang Time transition plan.
# https://www.nknews.org/kcna/wp-content/uploads/sites/5/2018/04/rodong-2018-04-30.pdf
# ... the transition date is 2018-05-05 ... Citation should be Decree
# No. 2232 of April 30, 2018, of the Presidium of the Supreme People's
# Assembly, as published in Rodong Sinmun.
# From Tim Parenti (2018-04-29):
# It appears to be the front page story at the top in the right-most column.
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Asia/Seoul 8:27:52 - LMT 1908 Apr 1
8:30 - KST 1912 Jan 1
...
...
@@ -2017,7 +2030,8 @@ Zone Asia/Pyongyang 8:23:00 - LMT 1908 Apr 1
8:30 - KST 1912 Jan 1
9:00 - JST 1945 Aug 24
9:00 - KST 2015 Aug 15 00:00
8:30 - KST
8:30 - KST 2018 May 5
9:00 - KST
###############################################################################
...
...
@@ -2681,7 +2695,7 @@ Zone Asia/Karachi 4:28:12 - LMT 1907
# From Sharef Mustafa (2018-03-16):
# Palestine summer time will start on Mar 24th 2018 by advancing the
# clock by 60 minutes as per Palestinian cabinet decision published on
# the offical website, though the decree did not specify the exact
# the offic
i
al website, though the decree did not specify the exact
# time of the time shift.
# http://www.palestinecabinet.gov.ps/Website/AR/NDecrees/ViewFile.ashx?ID=e7a42ab7-ee23-435a-b9c8-a4f7e81f3817
#
...
...
make/data/tzdata/australasia
浏览文件 @
46c770c2
...
...
@@ -1108,6 +1108,15 @@ Zone Pacific/Wallis 12:15:20 - LMT 1901
# (1999-09-27) writes that Giles Meteorological Station uses
# South Australian time even though it's located in Western Australia.
# From Paul Eggert (2018-04-01):
# The Guardian Express of Perth, Australia reported today that the
# government decided to advance the clocks permanently on January 1,
# 2019, from UT +08 to UT +09. The article noted that an exemption
# would be made for people aged 61 and over, who "can apply in writing
# to have the extra hour of sunshine removed from their area." See:
# Daylight saving coming to WA in 2019. Guardian Express. 2018-04-01.
# https://www.communitynews.com.au/guardian-express/news/exclusive-daylight-savings-coming-wa-summer-2018/
# Queensland
# From Paul Eggert (2018-02-26):
...
...
make/data/tzdata/europe
浏览文件 @
46c770c2
...
...
@@ -551,13 +551,13 @@ Link Europe/London Europe/Isle_of_Man
# summer and negative daylight saving time in winter. It is for when
# negative SAVE values are used.
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
#Rule Eire 1971 only - Oct 31 2:00u -1:00
GMT
#Rule Eire 1972 1980 - Mar Sun>=16 2:00u 0
IST
#Rule Eire 1972 1980 - Oct Sun>=23 2:00u -1:00
GMT
#Rule Eire 1981 max - Mar lastSun 1:00u 0
IST
#Rule Eire 1981 1989 - Oct Sun>=23 1:00u -1:00
GMT
#Rule Eire 1990 1995 - Oct Sun>=22 1:00u -1:00
GMT
#Rule Eire 1996 max - Oct lastSun 1:00u -1:00
GMT
#Rule Eire 1971 only - Oct 31 2:00u -1:00
-
#Rule Eire 1972 1980 - Mar Sun>=16 2:00u 0
-
#Rule Eire 1972 1980 - Oct Sun>=23 2:00u -1:00
-
#Rule Eire 1981 max - Mar lastSun 1:00u 0
-
#Rule Eire 1981 1989 - Oct Sun>=23 1:00u -1:00
-
#Rule Eire 1990 1995 - Oct Sun>=22 1:00u -1:00
-
#Rule Eire 1996 max - Oct lastSun 1:00u -1:00
-
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/Dublin -0:25:00 - LMT 1880 Aug 2
...
...
@@ -993,18 +993,30 @@ Zone Europe/Sofia 1:33:16 - LMT 1880
# Please see the 'asia' file for Asia/Nicosia.
# Czech Republic / Czechia
#
# From Paul Eggert (2018-04-15):
# The source for Czech data is: Kdy začíná a končí letní čas. 2018-04-15.
# https://kalendar.beda.cz/kdy-zacina-a-konci-letni-cas
# We know of no English-language name for historical Czech winter time;
# abbreviate it as "GMT", as it happened to be GMT.
#
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Czech 1945 only - Apr
8
2:00s 1:00 S
Rule Czech 1945 only -
Nov 18
2:00s 0 -
Rule Czech 1945 only - Apr
Mon>=1
2:00s 1:00 S
Rule Czech 1945 only -
Oct 1
2:00s 0 -
Rule Czech 1946 only - May 6 2:00s 1:00 S
Rule Czech 1946 1949 - Oct Sun>=1 2:00s 0 -
Rule Czech 1947 only - Apr 20 2:00s 1:00 S
Rule Czech 1948 only - Apr 18 2:00s 1:00 S
Rule Czech 1947 1948 - Apr Sun>=15 2:00s 1:00 S
Rule Czech 1949 only - Apr 9 2:00s 1:00 S
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/Prague 0:57:44 - LMT 1850
0:57:44 - PMT 1891 Oct # Prague Mean Time
1:00 C-Eur CE%sT 1944 Sep 17 2:00s
1:00 C-Eur CE%sT 1945 May 9
1:00 Czech CE%sT 1946 Dec 1 3:00
# Vanguard section, for zic and other parsers that support negative DST.
# 1:00 -1:00 GMT 1947 Feb 23 2:00
# Rearguard section, for parsers that do not support negative DST.
0:00 - GMT 1947 Feb 23 2:00
# End of rearguard section.
1:00 Czech CE%sT 1979
1:00 EU CE%sT
# Use Europe/Prague also for Slovakia.
...
...
@@ -2039,7 +2051,7 @@ Rule Neth 1938 1939 - May 15 2:00s 1:00 S
Rule Neth 1945 only - Apr 2 2:00s 1:00 S
Rule Neth 1945 only - Sep 16 2:00s 0 -
#
# Amsterdam Mean Time was +00:19:32.13
exactly
, but the .13 is omitted
# Amsterdam Mean Time was +00:19:32.13, but the .13 is omitted
# below because the current format requires GMTOFF to be an integer.
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/Amsterdam 0:19:32 - LMT 1835
...
...
src/share/classes/java/io/ObjectInputStream.java
浏览文件 @
46c770c2
...
...
@@ -1233,9 +1233,11 @@ public class ObjectInputStream
if
(
serialFilter
!=
null
)
{
RuntimeException
ex
=
null
;
ObjectInputFilter
.
Status
status
;
// Info about the stream is not available if overridden by subclass, return 0
long
bytesRead
=
(
bin
==
null
)
?
0
:
bin
.
getBytesRead
();
try
{
status
=
serialFilter
.
checkInput
(
new
FilterValues
(
clazz
,
arrayLength
,
totalObjectRefs
,
depth
,
b
in
.
getBytesRead
()
));
totalObjectRefs
,
depth
,
b
ytesRead
));
}
catch
(
RuntimeException
e
)
{
// Preventive interception of an exception to log
status
=
ObjectInputFilter
.
Status
.
REJECTED
;
...
...
@@ -1247,7 +1249,7 @@ public class ObjectInputStream
if
(
Logging
.
infoLogger
!=
null
)
{
Logging
.
infoLogger
.
info
(
"ObjectInputFilter {0}: {1}, array length: {2}, nRefs: {3}, depth: {4}, bytes: {5}, ex: {6}"
,
status
,
clazz
,
arrayLength
,
totalObjectRefs
,
depth
,
b
in
.
getBytesRead
()
,
status
,
clazz
,
arrayLength
,
totalObjectRefs
,
depth
,
b
ytesRead
,
Objects
.
toString
(
ex
,
"n/a"
));
}
InvalidClassException
ice
=
new
InvalidClassException
(
"filter status: "
+
status
);
...
...
@@ -1258,7 +1260,7 @@ public class ObjectInputStream
if
(
Logging
.
traceLogger
!=
null
)
{
Logging
.
traceLogger
.
finer
(
"ObjectInputFilter {0}: {1}, array length: {2}, nRefs: {3}, depth: {4}, bytes: {5}, ex: {6}"
,
status
,
clazz
,
arrayLength
,
totalObjectRefs
,
depth
,
b
in
.
getBytesRead
()
,
status
,
clazz
,
arrayLength
,
totalObjectRefs
,
depth
,
b
ytesRead
,
Objects
.
toString
(
ex
,
"n/a"
));
}
}
...
...
test/java/io/Serializable/serialFilter/CheckArrayTest.java
0 → 100644
浏览文件 @
46c770c2
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import
java.io.ByteArrayInputStream
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.ObjectInputStream
;
import
java.io.InvalidClassException
;
import
java.util.Hashtable
;
import
sun.misc.ObjectInputFilter
;
import
sun.misc.SharedSecrets
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.DataProvider
;
import
org.testng.annotations.Test
;
import
org.testng.Assert
;
/* @test
* @build CheckArrayTest SerialFilterTest
* @bug 8203368
* @modules java.base/jdk.internal.misc
* @run testng CheckArrayTest
*
* @summary Test the SharedSecret access to ObjectInputStream.checkArray works
* with overridden subclasses.
*/
/**
* Verify that the SharedSecret access to the OIS checkAccess method
* does not fail with NPE in the case where ObjectInputStream is subclassed.
* The checkAccess method is called from various aggregate types in java.util
* to check array sizes during deserialization via the ObjectInputFilter attached the stream.
* The filterCheck must be resilent to an InputStream not being available (only the subclass knows).
*/
public
class
CheckArrayTest
{
@DataProvider
(
name
=
"Patterns"
)
Object
[][]
patterns
()
{
return
new
Object
[][]{
new
Object
[]{
"maxarray=10"
,
10
,
new
String
[
10
]},
// successful
new
Object
[]{
"maxarray=10"
,
11
,
new
String
[
11
]},
// exception expected
};
}
/**
* Test SharedSecrets checkArray with unmodified ObjectInputStream.
*/
@Test
(
dataProvider
=
"Patterns"
)
public
void
normalOIS
(
String
pattern
,
int
arraySize
,
Object
[]
array
)
throws
IOException
{
ObjectInputFilter
filter
=
ObjectInputFilter
.
Config
.
createFilter
(
pattern
);
byte
[]
bytes
=
SerialFilterTest
.
writeObjects
(
array
);
try
(
ByteArrayInputStream
bais
=
new
ByteArrayInputStream
(
bytes
);
ObjectInputStream
ois
=
new
ObjectInputStream
(
bais
))
{
// Check the arraysize against the filter
try
{
ObjectInputFilter
.
Config
.
setObjectInputFilter
(
ois
,
filter
);
SharedSecrets
.
getJavaOISAccess
()
.
checkArray
(
ois
,
array
.
getClass
(),
arraySize
);
Assert
.
assertTrue
(
array
.
length
>=
arraySize
,
"Should have thrown InvalidClassException due to array size"
);
}
catch
(
InvalidClassException
ice
)
{
Assert
.
assertFalse
(
array
.
length
>
arraySize
,
"Should NOT have thrown InvalidClassException due to array size"
);
}
}
}
/**
* Test SharedSecrets checkArray with an ObjectInputStream subclassed to
* handle all input stream functions.
*/
@Test
(
dataProvider
=
"Patterns"
)
public
void
subclassedOIS
(
String
pattern
,
int
arraySize
,
Object
[]
array
)
throws
IOException
{
byte
[]
bytes
=
SerialFilterTest
.
writeObjects
(
array
);
try
(
ByteArrayInputStream
bais
=
new
ByteArrayInputStream
(
bytes
);
ObjectInputStream
ois
=
new
MyInputStream
(
bais
))
{
// Check the arraysize against the filter
ObjectInputFilter
filter
=
ObjectInputFilter
.
Config
.
createFilter
(
pattern
);
ObjectInputFilter
.
Config
.
setObjectInputFilter
(
ois
,
filter
);
SharedSecrets
.
getJavaOISAccess
()
.
checkArray
(
ois
,
array
.
getClass
(),
arraySize
);
Assert
.
assertTrue
(
array
.
length
>=
arraySize
,
"Should have thrown InvalidClassException due to array size"
);
}
catch
(
InvalidClassException
ice
)
{
Assert
.
assertFalse
(
array
.
length
>
arraySize
,
"Should NOT have thrown InvalidClassException due to array size"
);
}
}
/**
* Subclass OIS to disable all input stream functions of the OIS.
*/
static
class
MyInputStream
extends
ObjectInputStream
{
MyInputStream
(
InputStream
is
)
throws
IOException
{
super
();
}
public
void
close
()
{
}
}
}
test/sun/util/calendar/zi/tzdata/VERSION
浏览文件 @
46c770c2
...
...
@@ -21,4 +21,4 @@
# or visit www.oracle.com if you need additional information or have any
# questions.
#
tzdata2018
d
tzdata2018
e
test/sun/util/calendar/zi/tzdata/africa
浏览文件 @
46c770c2
...
...
@@ -29,7 +29,7 @@
# tz@iana.org for general use in the future). For more, please see
# the file CONTRIBUTING in the tz distribution.
# From Paul Eggert (2017-0
2-20
):
# From Paul Eggert (2017-0
4-09
):
#
# Unless otherwise specified, the source for data through 1990 is:
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
...
...
@@ -75,7 +75,7 @@
# cannot now come up with solid citations.
#
# I invented the following abbreviations; corrections are welcome!
# +02 WAST West Africa Summer Time
# +02 WAST West Africa Summer Time
(no longer used)
# +03 CAST Central Africa Summer Time (no longer used)
# +03 SAST South Africa Summer Time (no longer used)
# +03 EAT East Africa Time
...
...
@@ -990,6 +990,10 @@ Link Africa/Maputo Africa/Lusaka # Zambia
# commence at OOhOO on Monday 21 March 1994 and shall end at 02h00 on
# Sunday 4 September 1994.
# From Michael Deckers (2017-04-06):
# ... both summer and winter time are called "standard"
# (which differs from the use in Ireland) ...
# From Petronella Sibeene (2007-03-30):
# http://allafrica.com/stories/200703300178.html
# While the entire country changes its time, Katima Mulilo and other
...
...
@@ -1015,19 +1019,42 @@ Link Africa/Maputo Africa/Lusaka # Zambia
# the same time they would normally start DST, the first Sunday in September:
# https://www.timeanddate.com/news/time/namibia-new-time-zone.html
# From Paul Eggert (2017-04-09):
# Before the change, summer and winter time were both standard time legally.
# However in common parlance, winter time was considered to be DST. See, e.g.:
# http://www.nbc.na/news/namibias-winter-time-could-be-scrapped.2706
# https://zone.my.na/news/times-are-changing-in-namibia
# https://www.newera.com.na/2017/02/23/namibias-winter-time-might-be-repealed/
# Use plain "WAT" and "CAT" for the time zone abbreviations, to be compatible
# with Namibia's neighbors.
# RULE NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Namibia 1994 only - Mar 21 0:00 0 -
Rule Namibia 1994 2016 - Sep Sun>=1 2:00 1:00 S
Rule Namibia 1995 2017 - Apr Sun>=1 2:00 0 -
# Vanguard section, for zic and other parsers that support negative DST.
#Rule Namibia 1994 only - Mar 21 0:00 -1:00 WAT
#Rule Namibia 1994 2017 - Sep Sun>=1 2:00 0 CAT
#Rule Namibia 1995 2017 - Apr Sun>=1 2:00 -1:00 WAT
# Rearguard section, for parsers that do not support negative DST.
Rule Namibia 1994 only - Mar 21 0:00 0 WAT
Rule Namibia 1994 2017 - Sep Sun>=1 2:00 1:00 CAT
Rule Namibia 1995 2017 - Apr Sun>=1 2:00 0 WAT
# End of rearguard section.
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Windhoek 1:08:24 - LMT 1892 Feb 8
1:30 - +0130 1903 Mar
2:00 - SAST 1942 Sep 20 2:00
2:00 1:00 SAST 1943 Mar 21 2:00
2:00 - SAST 1990 Mar 21 # independence
# Vanguard section, for zic and other parsers that support negative DST.
# 2:00 Namibia %s
# Rearguard section, for parsers that do not support negative DST.
2:00 - CAT 1994 Mar 21 0:00
1:00 Namibia WA%sT 2017 Sep 3 2:00
# From Paul Eggert (2017-04-07):
# The official date of the 2017 rule change was 2017-10-24. See:
# http://www.lac.org.na/laws/annoSTAT/Namibian%20Time%20Act%209%20of%202017.pdf
1:00 Namibia %s 2017 Oct 24
2:00 - CAT
# End of rearguard section.
# Niger
# See Africa/Lagos.
...
...
test/sun/util/calendar/zi/tzdata/asia
浏览文件 @
46c770c2
...
...
@@ -2006,6 +2006,19 @@ Rule ROK 1987 1988 - Oct Sun>=8 3:00 0 S
# There is no common English-language abbreviation for this time zone.
# Use KST, as that's what we already use for 1954-1961 in ROK.
# From Kang Seonghoon (2018-04-29):
# North Korea will revert its time zone from UTC+8:30 (PYT; Pyongyang
# Time) back to UTC+9 (KST; Korea Standard Time).
#
# From Seo Sanghyeon (2018-04-30):
# Rodong Sinmun 2018-04-30 announced Pyongyang Time transition plan.
# https://www.nknews.org/kcna/wp-content/uploads/sites/5/2018/04/rodong-2018-04-30.pdf
# ... the transition date is 2018-05-05 ... Citation should be Decree
# No. 2232 of April 30, 2018, of the Presidium of the Supreme People's
# Assembly, as published in Rodong Sinmun.
# From Tim Parenti (2018-04-29):
# It appears to be the front page story at the top in the right-most column.
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Asia/Seoul 8:27:52 - LMT 1908 Apr 1
8:30 - KST 1912 Jan 1
...
...
@@ -2017,7 +2030,8 @@ Zone Asia/Pyongyang 8:23:00 - LMT 1908 Apr 1
8:30 - KST 1912 Jan 1
9:00 - JST 1945 Aug 24
9:00 - KST 2015 Aug 15 00:00
8:30 - KST
8:30 - KST 2018 May 5
9:00 - KST
###############################################################################
...
...
@@ -2681,7 +2695,7 @@ Zone Asia/Karachi 4:28:12 - LMT 1907
# From Sharef Mustafa (2018-03-16):
# Palestine summer time will start on Mar 24th 2018 by advancing the
# clock by 60 minutes as per Palestinian cabinet decision published on
# the offical website, though the decree did not specify the exact
# the offic
i
al website, though the decree did not specify the exact
# time of the time shift.
# http://www.palestinecabinet.gov.ps/Website/AR/NDecrees/ViewFile.ashx?ID=e7a42ab7-ee23-435a-b9c8-a4f7e81f3817
#
...
...
test/sun/util/calendar/zi/tzdata/australasia
浏览文件 @
46c770c2
...
...
@@ -1108,6 +1108,15 @@ Zone Pacific/Wallis 12:15:20 - LMT 1901
# (1999-09-27) writes that Giles Meteorological Station uses
# South Australian time even though it's located in Western Australia.
# From Paul Eggert (2018-04-01):
# The Guardian Express of Perth, Australia reported today that the
# government decided to advance the clocks permanently on January 1,
# 2019, from UT +08 to UT +09. The article noted that an exemption
# would be made for people aged 61 and over, who "can apply in writing
# to have the extra hour of sunshine removed from their area." See:
# Daylight saving coming to WA in 2019. Guardian Express. 2018-04-01.
# https://www.communitynews.com.au/guardian-express/news/exclusive-daylight-savings-coming-wa-summer-2018/
# Queensland
# From Paul Eggert (2018-02-26):
...
...
test/sun/util/calendar/zi/tzdata/europe
浏览文件 @
46c770c2
...
...
@@ -551,13 +551,13 @@ Link Europe/London Europe/Isle_of_Man
# summer and negative daylight saving time in winter. It is for when
# negative SAVE values are used.
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
#Rule Eire 1971 only - Oct 31 2:00u -1:00
GMT
#Rule Eire 1972 1980 - Mar Sun>=16 2:00u 0
IST
#Rule Eire 1972 1980 - Oct Sun>=23 2:00u -1:00
GMT
#Rule Eire 1981 max - Mar lastSun 1:00u 0
IST
#Rule Eire 1981 1989 - Oct Sun>=23 1:00u -1:00
GMT
#Rule Eire 1990 1995 - Oct Sun>=22 1:00u -1:00
GMT
#Rule Eire 1996 max - Oct lastSun 1:00u -1:00
GMT
#Rule Eire 1971 only - Oct 31 2:00u -1:00
-
#Rule Eire 1972 1980 - Mar Sun>=16 2:00u 0
-
#Rule Eire 1972 1980 - Oct Sun>=23 2:00u -1:00
-
#Rule Eire 1981 max - Mar lastSun 1:00u 0
-
#Rule Eire 1981 1989 - Oct Sun>=23 1:00u -1:00
-
#Rule Eire 1990 1995 - Oct Sun>=22 1:00u -1:00
-
#Rule Eire 1996 max - Oct lastSun 1:00u -1:00
-
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/Dublin -0:25:00 - LMT 1880 Aug 2
...
...
@@ -993,18 +993,30 @@ Zone Europe/Sofia 1:33:16 - LMT 1880
# Please see the 'asia' file for Asia/Nicosia.
# Czech Republic / Czechia
#
# From Paul Eggert (2018-04-15):
# The source for Czech data is: Kdy začíná a končí letní čas. 2018-04-15.
# https://kalendar.beda.cz/kdy-zacina-a-konci-letni-cas
# We know of no English-language name for historical Czech winter time;
# abbreviate it as "GMT", as it happened to be GMT.
#
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Czech 1945 only - Apr
8
2:00s 1:00 S
Rule Czech 1945 only -
Nov 18
2:00s 0 -
Rule Czech 1945 only - Apr
Mon>=1
2:00s 1:00 S
Rule Czech 1945 only -
Oct 1
2:00s 0 -
Rule Czech 1946 only - May 6 2:00s 1:00 S
Rule Czech 1946 1949 - Oct Sun>=1 2:00s 0 -
Rule Czech 1947 only - Apr 20 2:00s 1:00 S
Rule Czech 1948 only - Apr 18 2:00s 1:00 S
Rule Czech 1947 1948 - Apr Sun>=15 2:00s 1:00 S
Rule Czech 1949 only - Apr 9 2:00s 1:00 S
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/Prague 0:57:44 - LMT 1850
0:57:44 - PMT 1891 Oct # Prague Mean Time
1:00 C-Eur CE%sT 1944 Sep 17 2:00s
1:00 C-Eur CE%sT 1945 May 9
1:00 Czech CE%sT 1946 Dec 1 3:00
# Vanguard section, for zic and other parsers that support negative DST.
# 1:00 -1:00 GMT 1947 Feb 23 2:00
# Rearguard section, for parsers that do not support negative DST.
0:00 - GMT 1947 Feb 23 2:00
# End of rearguard section.
1:00 Czech CE%sT 1979
1:00 EU CE%sT
# Use Europe/Prague also for Slovakia.
...
...
@@ -2039,7 +2051,7 @@ Rule Neth 1938 1939 - May 15 2:00s 1:00 S
Rule Neth 1945 only - Apr 2 2:00s 1:00 S
Rule Neth 1945 only - Sep 16 2:00s 0 -
#
# Amsterdam Mean Time was +00:19:32.13
exactly
, but the .13 is omitted
# Amsterdam Mean Time was +00:19:32.13, but the .13 is omitted
# below because the current format requires GMTOFF to be an integer.
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/Amsterdam 0:19:32 - LMT 1835
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录