Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.5
=========================================

* **BUGFIX:** Fixed ``ExportServer`` handling of data relying on Pandas ``Timestamp`` instances.

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

Release 1.2.4
=========================================

Expand Down
2 changes: 1 addition & 1 deletion highcharts_core/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.2.4'
__version__ = '1.2.5'
4 changes: 4 additions & 0 deletions highcharts_core/metaclasses.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Set of metaclasses used throughout the library."""
import datetime
from abc import ABC, abstractmethod
from collections import UserDict
from typing import Optional, List
Expand Down Expand Up @@ -244,6 +245,9 @@ def trim_dict(untrimmed: dict,
trimmed_value = HighchartsMeta.trim_iterable(value, to_json = to_json)
if trimmed_value:
as_dict[key] = trimmed_value
# Pandas Timestamp
elif checkers.is_type(value, 'Timestamp'):
as_dict[key] = value.timestamp()
# other truthy -> str / number
elif value:
trimmed_value = HighchartsMeta.trim_iterable(value, to_json = to_json)
Expand Down