File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
azure/durable_functions/tasks Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import json
2
2
from ..models .history import HistoryEventType , HistoryEvent
3
- from ..constants import DATETIME_STRING_FORMAT
4
3
from azure .functions ._durable_functions import _deserialize_custom_object
5
- from datetime import datetime
4
+ from dateutil import parser
6
5
from typing import List , Optional
7
6
from ..models .actions .Action import Action
8
7
from ..models .Task import Task
@@ -140,7 +139,7 @@ def find_task_timer_created(state, fire_at):
140
139
tasks = []
141
140
for e in state :
142
141
if e .event_type == HistoryEventType .TIMER_CREATED and hasattr (e , "FireAt" ):
143
- if datetime . strptime (e .FireAt , DATETIME_STRING_FORMAT ) == fire_at :
142
+ if parser . parse (e .FireAt ). replace ( tzinfo = None ) == fire_at :
144
143
tasks .append (e )
145
144
146
145
if len (tasks ) == 0 :
You can’t perform that action at this time.
0 commit comments