You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
?: currentSystemDefault()?.first ?:throwIllegalStateException("Could not find the path to the timezone database")
29
-
30
21
}
31
22
23
+
/** The files that sometimes lie in the `zoneinfo` directory but aren't actually time zones. */
32
24
privateval tzdbUnneededFiles =setOf(
25
+
// taken from https://github.com/tzinfo/tzinfo/blob/9953fc092424d55deaea2dcdf6279943f3495724/lib/tzinfo/data_sources/zoneinfo_data_source.rb#L88C29-L97C21
26
+
"+VERSION",
27
+
"leapseconds",
28
+
"localtime",
33
29
"posix",
34
30
"posixrules",
31
+
"right",
32
+
"SECURITY",
33
+
"src",
34
+
"timeconfig",
35
+
// taken from https://github.com/HowardHinnant/date/blob/ab37c362e35267d6dee02cb47760f9e9c669d3be/src/tz.cpp#L2863-L2874
35
36
"Factory",
36
37
"iso3166.tab",
37
-
"right",
38
-
"+VERSION",
39
38
"zone.tab",
40
39
"zone1970.tab",
41
40
"tzdata.zi",
42
-
"leapseconds",
43
41
"leap-seconds.list"
44
42
)
43
+
44
+
/** The directories checked for a valid timezone database. */
0 commit comments