Skip to content

Commit a29e95e

Browse files
committed
Fixed serialization of datetime to MS from Epoch rather than S from Epoch.
1 parent 5ecf563 commit a29e95e

File tree

1 file changed

+2
-2
lines changed
  • highcharts_gantt/options/series/data

1 file changed

+2
-2
lines changed

highcharts_gantt/options/series/data/gantt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,11 @@ def _to_untrimmed_dict(self, in_cls = None) -> dict:
345345
}
346346

347347
if self.end is not None and hasattr(self.end, 'timestamp'):
348-
untrimmed['end'] = self.end.timestamp()
348+
untrimmed['end'] = self.end.timestamp() * 1000
349349
else:
350350
untrimmed['end'] = self.end
351351
if self.start is not None and hasattr(self.start, 'timestamp'):
352-
untrimmed['start'] = self.start.timestamp()
352+
untrimmed['start'] = self.start.timestamp() * 1000
353353
else:
354354
untrimmed['start'] = self.start
355355

0 commit comments

Comments
 (0)