Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #50 from minorcong/master
Browse files Browse the repository at this point in the history
fix: time template
  • Loading branch information
李聪 committed May 29, 2018
2 parents b7d7681 + aafa6f8 commit 6703eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/curve/v1/api/data_dataName.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def _find_time_format(time_str):
else:
# UNIX_s
return E_TIME_FORMATTER.unix
elif re.match(r'%d{4}-%d{2}-%d{2}\s%d{2}:%d{2}:%d{2}', time_str):
elif re.match(r'\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}', time_str):
# YYYY-mm-dd HH:MM:SS
return E_TIME_FORMATTER.rfc
return None
Expand Down

0 comments on commit 6703eb8

Please sign in to comment.