Skip to content

Commit a025f68

Browse files
committed
fix: timezone to be in utc format!
1 parent 6eb3917 commit a025f68

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hivemind_summarizer/activities.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ async def fetch_and_summarize_realtime_data(
261261
hours = int(input.period[:-1])
262262
time_threshold = now - timedelta(hours=hours)
263263
elif re.match(r"^\d{4}-\d{2}-\d{2}$", input.period):
264-
time_threshold = datetime.strptime(input.period, "%Y-%m-%d")
264+
time_threshold = datetime.strptime(input.period, "%Y-%m-%d").replace(
265+
tzinfo=timezone.utc
266+
)
265267
else:
266268
raise ValueError(
267269
"Period must be in format 'Nh' (e.g., '1h', '4h') or 'YYYY-MM-DD'"

0 commit comments

Comments
 (0)