Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b0d94b

Browse files
committed
Fix issue causing failed builds.
Signed-off-by: Paul G <[email protected]>
1 parent ee7931c commit 4b0d94b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def _get_rc_timezone():
178178
"""
179179
Time-related constants.
180180
"""
181-
EPOCH_OFFSET = float(datetime.datetime(1970, 1, 1)) # Epoch in ordinal
181+
EPOCH_OFFSET = float(datetime.datetime(1970, 1, 1).toordinal())
182182
JULIAN_OFFSET = 1721424.5 # Julian date at 0001-01-01
183183
MICROSECONDLY = SECONDLY + 1
184184
HOURS_PER_DAY = 24.

0 commit comments

Comments
 (0)