fix: convert to date to datetime
This commit is contained in:
parent
a4b68338a4
commit
48b39a0a2b
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ def get(chart_name = None, chart = None, no_cache = None, filters = None, from_d
|
|||
if to_date and len(to_date):
|
||||
to_date = get_datetime(to_date)
|
||||
else:
|
||||
to_date = chart.to_date
|
||||
to_date = get_datetime(chart.to_date)
|
||||
|
||||
timegrain = time_interval or chart.time_interval
|
||||
filters = frappe.parse_json(filters) or frappe.parse_json(chart.filters_json) or []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue