Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4096,7 +4096,7 @@ def perform_mod(op, val, t):
return t

for left,mid,right in data_set:
if "current format" == left.lower():
if "current format" == left.lower() or "format" == left.lower():
current_format = right
if "target format" == left.lower():
target_format = right
Expand All @@ -4113,6 +4113,7 @@ def perform_mod(op, val, t):
if "data" in left:
if right.strip().lower() == "today":
data = datetime.today()
_current_format = current_format
elif right.strip().lower() in ("monday","tuesday","wednesday","thursday","friday","saturday","sunday"):
data = parser.parse(right.strip())
else:
Expand Down