Hi,
i just got an error while editing event in calendar by dragging them , here the log:
Traceback (innermost last):
File “/home/myme/frappe-bench/apps/frappe/frappe/app.py”, line 49, in application
response = frappe.handler.handle()
File “/home/myme/frappe-bench/apps/frappe/frappe/handler.py”, line 66, in handle
execute_cmd(cmd)
File “/home/myme/frappe-bench/apps/frappe/frappe/handler.py”, line 89, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/myme/frappe-bench/apps/frappe/frappe/init.py”, line 531, in call
return fn(*args, **newargs)
File “/home/myme/frappe-bench/apps/frappe/frappe/widgets/calendar.py”, line 17, in update_event
w.save()
File “/home/myme/frappe-bench/apps/frappe/frappe/model/document.py”, line 183, in save
self.run_before_save_methods()
File “/home/myme/frappe-bench/apps/frappe/frappe/model/document.py”, line 430, in run_before_save_methods
self.run_method(“validate”)
File “/home/myme/frappe-bench/apps/frappe/frappe/model/document.py”, line 412, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/myme/frappe-bench/apps/frappe/frappe/model/document.py”, line 493, in composer
return composed(self, method, *args, **kwargs)
File “/home/myme/frappe-bench/apps/frappe/frappe/model/document.py”, line 476, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/myme/frappe-bench/apps/frappe/frappe/model/document.py”, line 406, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/myme/frappe-bench/apps/frappe/frappe/core/doctype/event/event.py”, line 17, in validate
if self.starts_on and self.ends_on and int(date_diff(self.ends_on.split(" “)[0], self.starts_on.split(” ")[0])) > 0
File “/home/myme/frappe-bench/apps/frappe/frappe/utils/data.py”, line 54, in date_diff
return (getdate(string_ed_date) - getdate(string_st_date)).days
File “/home/myme/frappe-bench/apps/frappe/frappe/utils/data.py”, line 26, in getdate
return datetime.datetime.strptime(string_date, “%Y-%m-%d”).date()
File “/usr/lib/python2.7/_strptime.py”, line 325, in _strptime
(data_string, format))
ValueError: time data ‘Invalid’ does not match format ‘%Y-%m-%d’
i have been tried to change the date format but there is no luck…
please advise
thanks
bobby