File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import logging
22import os
33import time
4- from datetime import datetime
4+ from datetime import datetime , timezone
55
66import requests
77import schedule
@@ -275,7 +275,7 @@ def post_upcoming_projects():
275275 """Notify leads about projects starting on Monday."""
276276 projects = get_projects ()
277277 upcoming = []
278- today = datetime .utcnow ( ).date ()
278+ today = datetime .now ( timezone . utc ).date ()
279279 for project in projects :
280280 start = project .get ("startDate" )
281281 if not start :
@@ -300,7 +300,7 @@ def post_friday_deadlines():
300300 """Notify leads about projects ending on Friday."""
301301 projects = get_projects ()
302302 upcoming = []
303- today = datetime .utcnow ( ).date ()
303+ today = datetime .now ( timezone . utc ).date ()
304304 for project in projects :
305305 target = project .get ("targetDate" )
306306 if not target :
You can’t perform that action at this time.
0 commit comments