We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eb3917 commit a025f68Copy full SHA for a025f68
1 file changed
hivemind_summarizer/activities.py
@@ -261,7 +261,9 @@ async def fetch_and_summarize_realtime_data(
261
hours = int(input.period[:-1])
262
time_threshold = now - timedelta(hours=hours)
263
elif re.match(r"^\d{4}-\d{2}-\d{2}$", input.period):
264
- time_threshold = datetime.strptime(input.period, "%Y-%m-%d")
+ time_threshold = datetime.strptime(input.period, "%Y-%m-%d").replace(
265
+ tzinfo=timezone.utc
266
+ )
267
else:
268
raise ValueError(
269
"Period must be in format 'Nh' (e.g., '1h', '4h') or 'YYYY-MM-DD'"
0 commit comments