We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72796f1 commit 4918074Copy full SHA for 4918074
pandas/_libs/tslibs/timezones.pyx
@@ -18,6 +18,9 @@ cimport numpy as cnp
18
from numpy cimport int64_t
19
cnp.import_array()
20
21
+UTC_EQ_STR = 'Etc/GMT'
22
+UTC_EQ = pytz.timezone(UTC_EQ_STR)
23
+
24
# ----------------------------------------------------------------------
25
from pandas._libs.tslibs.util cimport is_integer_object, get_nat
26
@@ -76,6 +79,8 @@ cpdef inline object get_timezone(object tz):
76
79
zone = tz.zone
77
80
if zone is None:
78
81
return tz
82
+ if zone == UTC_EQ or zone == UTC_EQ_STR:
83
+ return UTC
84
return zone
85
except AttributeError:
86
0 commit comments