Skip to content

Commit 70d71ee

Browse files
committed
Fix other/gauss_easter.py
1 parent 3a5fef8 commit 70d71ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

other/gauss_easter.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
import math
6-
from datetime import datetime, timedelta
6+
from datetime import datetime, timedelta, UTC
77

88

99
def gauss_easter(year: int) -> datetime:
@@ -45,11 +45,11 @@ def gauss_easter(year: int) -> datetime:
4545
) % 7
4646

4747
if days_to_add == 29 and days_from_phm_to_sunday == 6:
48-
return datetime(year, 4, 19)
48+
return datetime(year, 4, 19, tzinfo=UTC)
4949
elif days_to_add == 28 and days_from_phm_to_sunday == 6:
50-
return datetime(year, 4, 18)
50+
return datetime(year, 4, 18, tzinfo=UTC)
5151
else:
52-
return datetime(year, 3, 22) + timedelta(
52+
return datetime(year, 3, 22, tzinfo=UTC) + timedelta(
5353
days=int(days_to_add + days_from_phm_to_sunday)
5454
)
5555

0 commit comments

Comments
 (0)