mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 17:06:45 +00:00
Merge pull request #117 from hongwei1/master
bugfix/tweaked the date format for getMetric
This commit is contained in:
commit
45cca70d36
@ -107,7 +107,7 @@ class MetricsView(LoginRequiredMixin, TemplateView):
|
||||
"""
|
||||
for metric in metrics:
|
||||
metric['date'] = datetime.datetime.strptime(
|
||||
metric['date'], '%Y-%m-%dT%H:%M:%S.%fZ')
|
||||
metric['date'], settings.API_DATETIMEFORMAT)
|
||||
return metrics
|
||||
|
||||
def to_api(self, cleaned_data):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user