Skip to content

Commit 6b3efa5

Browse files
committedOct 17, 2024
restores timezone conversion for day ahead prices, fixes #356
1 parent 5e9f4c6 commit 6b3efa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎entsoe/entsoe.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
warnings.filterwarnings('ignore', category=XMLParsedAsHTMLWarning)
2424

2525
__title__ = "entsoe-py"
26-
__version__ = "0.6.12"
26+
__version__ = "0.6.13"
2727
__author__ = "EnergieID.be, Frank Boerman"
2828
__license__ = "MIT"
2929

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

0 commit comments

Comments
 (0)
Please sign in to comment.