File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ AllCoreDevs-CL-Meetings/
2
+ AllCoreDevs-EL-Meetings/
3
+ Breakout-Room-Meetings/
4
+ Fusaka/
5
+ Network-Upgrade-Archive/
6
+ Pectra/
Original file line number Diff line number Diff line change @@ -525,10 +525,10 @@ def parse_issue_for_time(issue_body: str):
525
525
# Construct the datetime string
526
526
datetime_str = f"{ month } { day } { year } { hour } :{ minute } "
527
527
try :
528
- start_dt = datetime .strptime (datetime_str , "%B %d %Y %H:%M" ) # Full month name
528
+ start_dt = dt .strptime (datetime_str , "%B %d %Y %H:%M" ) # Full month name
529
529
except ValueError :
530
530
try :
531
- start_dt = datetime .strptime (datetime_str , "%b %d %Y %H:%M" ) # Abbreviated month name
531
+ start_dt = dt .strptime (datetime_str , "%b %d %Y %H:%M" ) # Abbreviated month name
532
532
except ValueError as e :
533
533
raise ValueError (f"Unable to parse the start time: { e } " )
534
534
@@ -557,9 +557,9 @@ def parse_issue_for_time(issue_body: str):
557
557
if end_hour and end_minute :
558
558
end_time_str = f"{ month } { day } { year } { end_hour } :{ end_minute } "
559
559
try :
560
- end_dt = datetime .strptime (end_time_str , "%B %d %Y %H:%M" )
560
+ end_dt = dt .strptime (end_time_str , "%B %d %Y %H:%M" )
561
561
except ValueError :
562
- end_dt = datetime .strptime (end_time_str , "%b %d %Y %H:%M" )
562
+ end_dt = dt .strptime (end_time_str , "%b %d %Y %H:%M" )
563
563
564
564
if end_dt <= start_dt :
565
565
raise ValueError ("End time must be after start time." )
You can’t perform that action at this time.
0 commit comments