Skip to content

Bug: Timezone Offset Handling in get_forecast_values_day_ahead_fast Causes Incorrect Forecast Time #249

@ram-from-tvl

Description

@ram-from-tvl

Failing Test:
test_get_latest_forecast_values_day_head_with_timezone
File: tests/read/test_get_forecast_values.py

Assertion Error:

assert datetime.datetime(2000, 1, 2, 20, 0) == datetime.datetime(2000, 1, 2, 19, 0)

Root Cause:

Likely due to incorrect handling of the day_ahead_timezone_delta_hours in get_forecast_values_day_ahead_fast. The datetime offset logic may be shifting forecast times incorrectly by +1 hour.


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions