Skip to content

Commit 811ce57

Browse files
Harshbansal8705proffapt
authored andcommitted
fix: Update date parse to match new ERP format
ERP recently changed the date format in the companies list. This commit updates the parsing logic to support the new format.
1 parent 1cac4ed commit 811ce57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mftp/company.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def compare_deadline_lt(company, deadline_key):
193193

194194

195195
def parse_date(company, date_key):
196-
date_format = "%d-%m-%Y %H:%M"
196+
date_format = "%Y-%m-%d %H:%M"
197197
date = None
198198
if company.get(date_key):
199199
try:

0 commit comments

Comments
 (0)