Skip to content

Commit 33781c3

Browse files
finish merge from upstream
1 parent cc5732c commit 33781c3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/mplfinance/plotting.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,6 @@ def _warn_set_ylim_deprecated(value):
7979
category=DeprecationWarning)
8080
return isinstance(value,bool)
8181

82-
def _tzinfo_dates(dates,tzinfo=None):
83-
if tzinfo != None: # assume 'UTC'; later implement others
84-
return dates
85-
dts = copy.deepcopy(dates)
86-
for ix, d in enumerate(dts):
87-
dts[ix] = d.replace(tzinfo)
88-
return dts
89-
9082

9183
def _valid_plot_kwargs():
9284
'''
@@ -360,9 +352,9 @@ def plot( data, **kwargs ):
360352

361353
if config['show_nontrading']:
362354
formatter = mdates.DateFormatter(fmtstring)
363-
xdates = _tzinfo_dates(dates,tzinfo=config['tzinfo'])
355+
xdates = dates
364356
else:
365-
formatter = IntegerIndexDateTimeFormatter(_tzinfo_dates(dates,tzinfo=config['tzinfo']),fmtstring)
357+
formatter = IntegerIndexDateTimeFormatter(dates, fmtstring)
366358
xdates = np.arange(len(dates))
367359

368360
if external_axes_mode:

0 commit comments

Comments
 (0)