Skip to content

Commit

Permalink
MongoDB: Fix timezone woes when testing on CI/GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Sep 18, 2024
1 parent b449784 commit 9034076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/transform/mongodb/test_mongodb_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ def test_convert_transform_timestamp():
"""
Validate a Zyp transformation that converts datetime values in text format.
"""
data_in = [{"device": "Hotzenplotz", "temperature": 42.42, "timestamp": "06/14/2022 12:42:24"}]
data_out = [{"device": "Hotzenplotz", "temperature": 42.42, "timestamp": 1655203344}]
data_in = [{"device": "Hotzenplotz", "temperature": 42.42, "timestamp": "06/14/2022 12:42:24.4242 UTC"}]
data_out = [{"device": "Hotzenplotz", "temperature": 42.42, "timestamp": 1655210544.4242}]

bucket_transformation = BucketTransformation(
values=ValueConverter().add(pointer="/timestamp", transformer="to_unixtime"),
Expand Down

0 comments on commit 9034076

Please sign in to comment.