Skip to content

Fix timestamps#342

Merged
haneslinger merged 2 commits intodevelopfrom
Fix-timestamps
Sep 15, 2025
Merged

Fix timestamps#342
haneslinger merged 2 commits intodevelopfrom
Fix-timestamps

Conversation

@haneslinger
Copy link
Collaborator

Copy link
Member

@stephen-frank stephen-frank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes sense! I'd need to test it with SkySpark, but if it is passing Wattile's unit tests I am fairly confident it will work.


- `timezone`: *str (defaults "UTC")*

The pytz timezone in which the data should be converted to before data processing. Note,untimestamped incoming data is assumed to be in UTC.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(minor) missing space in "Note,untimestamped"

data = data.sort_index()
data.index = data.index.tz_convert("UTC")
data.index = data.index.tz_convert(
configs["data_processing"]["feat_time"].get("time_zone", "UTC")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, this defaults to "UTC"; got it.

@haneslinger haneslinger merged commit 754e872 into develop Sep 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants