We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 814baae commit 1ce9236Copy full SHA for 1ce9236
highcharts_gantt/options/series/data/gantt.py
@@ -345,10 +345,15 @@ def _to_untrimmed_dict(self, in_cls = None) -> dict:
345
}
346
347
if self.end is not None and hasattr(self.end, 'timestamp'):
348
+ if not self.end.tzinfo:
349
+ self.end = self.end.replace(tzinfo = datetime.timezone.utc)
350
untrimmed['end'] = self.end.timestamp() * 1000
351
else:
352
untrimmed['end'] = self.end
353
if self.start is not None and hasattr(self.start, 'timestamp'):
354
+ if not self.start.tzinfo:
355
+ self.start = self.start.replace(tzinfo = datetime.timezone.utc)
356
+
357
untrimmed['start'] = self.start.timestamp() * 1000
358
359
untrimmed['start'] = self.start
0 commit comments