diff --git a/pyexcel_xls/xlsw.py b/pyexcel_xls/xlsw.py index 8cdd32b..4822cd3 100644 --- a/pyexcel_xls/xlsw.py +++ b/pyexcel_xls/xlsw.py @@ -56,7 +56,7 @@ class XLSheetWriter(ISheetWriter): elif isinstance(value, datetime.timedelta): value = value.days + value.seconds / 86_400 style = XFStyle() - style.num_format_str = DEFAULT_LONGTIME_FORMAT + style.num_format_str = DEFAULT_LONGTIME_FORMAT elif isinstance(value, datetime.date): tmp_array = [value.year, value.month, value.day] value = xlrd.xldate.xldate_from_date_tuple(tmp_array, 0)