File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
highcharts_gantt/options/series/data Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11from typing import Optional , List
22from decimal import Decimal
3- from datetime import datetime , date
3+ from datetime import datetime , date , timezone
44
55from validator_collection import validators , checkers
66
@@ -346,13 +346,13 @@ def _to_untrimmed_dict(self, in_cls = None) -> dict:
346346
347347 if self .end is not None and hasattr (self .end , 'timestamp' ):
348348 if not self .end .tzinfo :
349- self .end = self .end .replace (tzinfo = datetime . timezone .utc )
349+ self .end = self .end .replace (tzinfo = timezone .utc )
350350 untrimmed ['end' ] = self .end .timestamp () * 1000
351351 else :
352352 untrimmed ['end' ] = self .end
353353 if self .start is not None and hasattr (self .start , 'timestamp' ):
354354 if not self .start .tzinfo :
355- self .start = self .start .replace (tzinfo = datetime . timezone .utc )
355+ self .start = self .start .replace (tzinfo = timezone .utc )
356356
357357 untrimmed ['start' ] = self .start .timestamp () * 1000
358358 else :
You can’t perform that action at this time.
0 commit comments