Skip to content

Commit 3421a18

Browse files
Update bug last change time parsing logic (#2712)
1 parent 3920083 commit 3421a18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bugbot/rules/webcompat_platform_without_keyword.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from datetime import datetime
66
from typing import Any, Optional
77

8+
from dateutil import parser
9+
810
from bugbot import gcp
911
from bugbot.bzcleaner import BzCleaner
1012

@@ -39,8 +41,7 @@ def handle_bug(
3941
# so prefer to do nothing.
4042
if (
4143
self.last_bugzilla_import_time
42-
and datetime.fromisoformat(bug["last_change_time"])
43-
> self.last_bugzilla_import_time
44+
and parser.parse(bug["last_change_time"]) > self.last_bugzilla_import_time
4445
):
4546
return None
4647

0 commit comments

Comments
 (0)