Skip to content

Commit

Permalink
Merge pull request #27 from highcharts-for-python/develop
Browse files Browse the repository at this point in the history
PR for v.1.2.1
  • Loading branch information
hcpchris authored Jun 10, 2023
2 parents 6a7c78e + 2bad04e commit 4f24e59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Release 1.2.1
=========================================

* **BUGFIX:** Fixed incorrect ``datetime`` serialization to SECONDS from Unix epoch. Now serializing to JS-compatible MILLISECONDS from Unix epoch.

------------------

Release 1.2.0
=========================================

Expand Down
2 changes: 1 addition & 1 deletion highcharts_gantt/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.2.0'
__version__ = '1.2.1'
4 changes: 2 additions & 2 deletions highcharts_gantt/options/series/data/gantt.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ def _to_untrimmed_dict(self, in_cls = None) -> dict:
}

if self.end is not None and hasattr(self.end, 'timestamp'):
untrimmed['end'] = self.end.timestamp()
untrimmed['end'] = self.end.timestamp() * 1000
else:
untrimmed['end'] = self.end
if self.start is not None and hasattr(self.start, 'timestamp'):
untrimmed['start'] = self.start.timestamp()
untrimmed['start'] = self.start.timestamp() * 1000
else:
untrimmed['start'] = self.start

Expand Down

0 comments on commit 4f24e59

Please sign in to comment.