Skip to content

Commit 38827a9

Browse files
Fix datetime and timedelta in docs
The datetime should include the timezone offset and timedelta is imported from datetime module. Signed-off-by: Daniel Zullo <[email protected]>
1 parent be4b388 commit 38827a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ delivery_area = DeliveryArea(
7676
code_type=EnergyMarketCodeType.EUROPE_EIC
7777
)
7878
delivery_period = DeliveryPeriod(
79-
start=datetime.fromisoformat("2024-05-01T00:00:00"),
80-
duration=datetime.timedelta(minutes=15)
79+
start=datetime.fromisoformat("2024-05-01T00:00:00+00:00"),
80+
duration=timedelta(minutes=15)
8181
)
8282
price = Price(amount=Decimal("50.0"), currency=Currency.EUR)
8383
quantity = Energy(mwh=Decimal("0.1"))

0 commit comments

Comments
 (0)