Skip to content

Commit 29ace0d

Browse files
authored
Merge pull request #484 from AutomationSolutionz/modify_datetime_action_update
fixed format issue by Shahid
2 parents d6d04a7 + 070fefc commit 29ace0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Framework/Built_In_Automation/Sequential_Actions/common_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4096,7 +4096,7 @@ def perform_mod(op, val, t):
40964096
return t
40974097

40984098
for left,mid,right in data_set:
4099-
if "current format" == left.lower():
4099+
if "current format" == left.lower() or "format" == left.lower():
41004100
current_format = right
41014101
if "target format" == left.lower():
41024102
target_format = right
@@ -4113,6 +4113,7 @@ def perform_mod(op, val, t):
41134113
if "data" in left:
41144114
if right.strip().lower() == "today":
41154115
data = datetime.today()
4116+
_current_format = current_format
41164117
elif right.strip().lower() in ("monday","tuesday","wednesday","thursday","friday","saturday","sunday"):
41174118
data = parser.parse(right.strip())
41184119
else:

0 commit comments

Comments
 (0)