Commit 818adca6 authored by nmartensen's avatar nmartensen
Browse files

with iso_dates=True, do not convert timedelta to time

branch : 3.0
parent 93b33c5924e4
......@@ -24,9 +24,7 @@ def _set_attributes(cell, styled=None):
value = cell._value
if cell.data_type == "d":
if cell.parent.parent.iso_dates:
if isinstance(value, timedelta):
value = days_to_time(value)
if cell.parent.parent.iso_dates and not isinstance(value, timedelta):
value = value.isoformat()
attrs['t'] = "n"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment