File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -97,18 +97,16 @@ name(tz::FixedTimeZone) = tz.name
9797rename (tz:: FixedTimeZone , name:: AbstractString ) = FixedTimeZone (name, tz. offset)
9898
9999function Base.:(== )(a:: FixedTimeZone , b:: FixedTimeZone )
100- a. name == b. name && a. offset == b. offset
100+ return a. name == b. name && a. offset == b. offset
101101end
102102
103103function Base. isequal (a:: FixedTimeZone , b:: FixedTimeZone )
104- return (
105- isequal (a. name, b. name) &&
106- isequal (a. offset, b. offset)
107- )
104+ return isequal (a. name, b. name) && isequal (a. offset, b. offset)
108105end
109106
110107function Base. hash (tz:: FixedTimeZone , h:: UInt )
108+ h = hash (:timezone , h)
111109 h = hash (tz. name, h)
112110 h = hash (tz. offset, h)
113111 return h
114- end
112+ end
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ US/Pacific (UTC-8/UTC-7)
4040"""
4141TimeZone (:: AbstractString , :: Class )
4242
43- function TimeZone (str:: AbstractString , mask:: Class = Class (:DEFAULT ))
43+ TimeZone (str:: AbstractString , args... ) = TimeZone (String (str), args... )
44+
45+ function TimeZone (str:: String , mask:: Class = Class (:DEFAULT ))
4446 # Note: If the class `mask` does not match the time zone we'll still load the
4547 # information into the cache to ensure the result is consistent.
4648 tz, class = get! (TIME_ZONE_CACHE, String (str)) do
You can’t perform that action at this time.
0 commit comments