Employee Attendance Tool error

Hi,

When I want to open the Employee Attendance Tool, it shows this error:

`Server Error: Please check your server logs or contact tech support.
Traceback (innermost last):
  File "/home/forge/frappe-bench/apps/frappe/frappe/app.py", line 57, in application
    response = frappe.handler.handle()
  File "/home/forge/frappe-bench/apps/frappe/frappe/handler.py", line 19, in handle
    execute_cmd(cmd)
  File "/home/forge/frappe-bench/apps/frappe/frappe/handler.py", line 36, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/forge/frappe-bench/apps/frappe/frappe/__init__.py", line 805, in call
    return fn(*args, **newargs)
  File "/home/forge/frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_attendance_tool/employee_attendance_tool.py", line 23, in get_employees
    filters={"att_date": date}):
  File "/home/forge/frappe-bench/apps/frappe/frappe/__init__.py", line 926, in get_list
    return frappe.model.db_query.DatabaseQuery(doctype).execute(None, *args, **kwargs)
  File "/home/forge/frappe-bench/apps/frappe/frappe/model/db_query.py", line 66, in execute
    result = self.build_and_run()
  File "/home/forge/frappe-bench/apps/frappe/frappe/model/db_query.py", line 74, in build_and_run
    args = self.prepare_args()
  File "/home/forge/frappe-bench/apps/frappe/frappe/model/db_query.py", line 89, in prepare_args
    self.build_conditions()
  File "/home/forge/frappe-bench/apps/frappe/frappe/model/db_query.py", line 212, in build_conditions
    self.build_filter_conditions(self.filters, self.conditions)
  File "/home/forge/frappe-bench/apps/frappe/frappe/model/db_query.py", line 230, in build_filter_conditions
    conditions.append(self.prepare_filter_condition(f))
  File "/home/forge/frappe-bench/apps/frappe/frappe/model/db_query.py", line 261, in prepare_filter_condition
    value = getdate(f.value).strftime("%Y-%m-%d")
  File "/home/forge/frappe-bench/apps/frappe/frappe/utils/data.py", line 39, in getdate
    return parser.parse(string_date).date()
  File "/home/forge/frappe-bench/env/local/lib/python2.7/site-packages/dateutil/parser.py", line 1161, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/home/forge/frappe-bench/env/local/lib/python2.7/site-packages/dateutil/parser.py", line 552, in parse
    raise ValueError("Unknown string format")
 ValueError: Unknown string format`

It also happening in the demo website. How to fix this?

I think date time on employee attendance tool issue was fixed earlier. Probably, @vjFaLk can help resolve it.

That’s odd, that’s a fairly old bug, which was fixed. I can’t recreate it on demo either. Could you update and try? Or are you on latest?

@vjFaLk how to know the version that I am using?

From the Toolbar, click on your name and then click on “About”