Commits

Sven Hendriks committed b184884

added celltype "d" for dates

  • Participants
  • Parent commits 4b43cb8
  • Branches iso8601

Comments (0)

Files changed (1)

File xlsxcessive/worksheet.py

             if value.shared:
                 value = value.share(self)
         elif isinstance(value, (datetime.date, datetime.time, datetime.datetime)):
-            self.cell_type = 'inlineStr'
+            self.cell_type = 'd'
             value = value.isoformat()
         else:
             raise ValueError("Unsupported cell value: %r" % value)
             return "<v>%s</v>" % self.value
         elif self.cell_type == 'str':
             return str(self.value)
+        elif self.cell_type == 'd':
+            return "<v>%s</v>" % self.value
 
     def __str__(self):
         attrs = [