Skip to content

Commit

Permalink
restores timezone conversion for day ahead prices, fixes #356
Browse files Browse the repository at this point in the history
  • Loading branch information
fboerman committed Oct 17, 2024
1 parent 5e9f4c6 commit 6b3efa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entsoe/entsoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
warnings.filterwarnings('ignore', category=XMLParsedAsHTMLWarning)

__title__ = "entsoe-py"
__version__ = "0.6.12"
__version__ = "0.6.13"
__author__ = "EnergieID.be, Frank Boerman"
__license__ = "MIT"

Expand Down Expand Up @@ -1231,6 +1231,7 @@ def query_day_ahead_prices(
end=end+pd.Timedelta(days=1),
resolution=resolution
)
series = series.tz_convert(area.tz)
series = series.truncate(before=start, after=end)
# because of the above fix we need to check again if any valid data exists after truncating
if len(series) == 0:
Expand Down

0 comments on commit 6b3efa5

Please sign in to comment.