Skip to content

fix: DST bug in processing time series segments#2069

Open
Flix6x wants to merge 4 commits intomainfrom
fix/dst-bug-in-processing-time-series-segment
Open

fix: DST bug in processing time series segments#2069
Flix6x wants to merge 4 commits intomainfrom
fix/dst-bug-in-processing-time-series-segment

Conversation

@Flix6x
Copy link
Copy Markdown
Contributor

@Flix6x Flix6x commented Mar 28, 2026

Description

  • Ensure Pandas objects before calling tz_convert
  • Added changelog item in documentation/changelog.rst

Look & Feel

The associated error in RQ Dashboard:

  File "/usr/local/lib/python3.12/dist-packages/flexmeasures/data/models/planning/utils.py", line 419, in process_time_series_segments
    start = start.tz_convert("UTC")
            ^^^^^^^^^^^^^^^^
AttributeError: 'datetime.datetime' object has no attribute 'tz_convert'

How to test

...

Further Improvements

  • Add test to schedule with time series segments crossing a DST transition

@Flix6x Flix6x self-assigned this Mar 28, 2026
@Flix6x Flix6x added bug Something isn't working Scheduling labels Mar 28, 2026
@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community bot commented Mar 28, 2026

Documentation build overview

📚 flexmeasures | 🛠️ Build #32025179 | 📁 Comparing c3a5b01 against latest (05ebb84)


🔍 Preview build

Show files changed (3 files in total): 📝 3 modified | ➕ 0 added | ➖ 0 deleted
File Status
changelog.html 📝 modified
_autosummary/flexmeasures.utils.error_utils.html 📝 modified
api/v3_0.html 📝 modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Scheduling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant