Skip to content

Commit

Permalink
Merge pull request #321 from Renumics/fix/datetime-conversion
Browse files Browse the repository at this point in the history
Convert numpy datetimes to us
  • Loading branch information
druzsan authored Oct 27, 2023
2 parents 1e67680 + f10a8dc commit 8630760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renumics/spotlight/dtypes/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _(value: Union[str, np.str_], _: dtypes.DType) -> Optional[datetime.datetime

@convert("datetime")
def _(value: np.datetime64, _: dtypes.DType) -> Optional[datetime.datetime]:
return value.tolist()
return value.astype("datetime64[us]").tolist()


@convert("Category")
Expand Down

0 comments on commit 8630760

Please sign in to comment.