Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 8576a07 + e57053d commit 0cf4085Copy full SHA for 0cf4085
1 file changed
lib/matplotlib/dates.py
@@ -281,7 +281,7 @@ def _from_ordinalf(x, tz=None):
281
elif dt.microsecond > 999990:
282
dt += datetime.timedelta(microseconds=1e6 - dt.microsecond)
283
284
- return dt
+ return dt.astimezone(tz)
285
286
287
# a version of _from_ordinalf that can operate on numpy arrays
0 commit comments