Skip to content

Commit 604754a

Browse files
fix should_run function in typing script (Azure#39783)
* fix should_run function in typing script * get rough time for pst, date is what matters * remove debug
1 parent ce62d91 commit 604754a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/repo_type_completeness/generate_main_typescores.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ def append_results_to_csv(entities: list[dict[str, Any]]) -> None:
267267
def should_run() -> bool:
268268
"""We only update the typing dashboard once a month on the Monday after release week.
269269
"""
270-
today = datetime.date.today()
270+
pst = datetime.datetime.now(datetime.timezone(offset=datetime.timedelta(hours=-8)))
271+
today = pst.date()
271272
c = calendar.Calendar(firstweekday=calendar.SUNDAY)
272273
month_dates = c.monthdatescalendar(today.year, today.month)
273274

0 commit comments

Comments
 (0)