Repository: climate Updated Branches: refs/heads/master 86131eba6 -> a09757ff2
CLIMATE-470 - Update time base parsing string with new format - Add a new string format for time base parsing to handle date strings of the form "1999-1-1 0". Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/5290df2e Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/5290df2e Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/5290df2e Branch: refs/heads/master Commit: 5290df2ebc509e97aa83031df9b6f6945dc1951d Parents: 86131eb Author: Michael Joyce <[email protected]> Authored: Sat Jun 7 20:11:49 2014 -0700 Committer: Michael Joyce <[email protected]> Committed: Sat Jun 7 20:11:49 2014 -0700 ---------------------------------------------------------------------- ocw/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/5290df2e/ocw/utils.py ---------------------------------------------------------------------- diff --git a/ocw/utils.py b/ocw/utils.py index 4a01f78..38a399f 100644 --- a/ocw/utils.py +++ b/ocw/utils.py @@ -111,7 +111,7 @@ def parse_time_base(time_format): '%Y:%m:%d:%H:%M:%S', '%Y-%m-%d-%H:%M:%S', '%Y-%m-%d %H:%M:%S', '%Y/%m/%d%H:%M:%S', '%Y-%m-%d %H:%M', '%Y/%m/%d %H:%M', '%Y:%m:%d %H:%M', '%Y%m%d %H:%M', '%Y-%m-%d', '%Y/%m/%d', - '%Y:%m:%d', '%Y%m%d', '%Y-%m-%d %H:%M:%S.%f' + '%Y:%m:%d', '%Y%m%d', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H', ] # Attempt to match the base time string with a possible format parsing string.
