-
Committer:
Matt Giuca
-
Date:
2011-11-20 01:46:22 UTC
-
mto:
This revision was merged to the branch mainline in
revision
6282.
-
Revision ID:
matt.giuca@gmail.com-20111120014622-tuietl54pvi7943t
bzrlib.timestamp: More robust handling of time stamp string. (LP: #892657)
Use a regex instead of simply splitting on particular character position.
Gives a better error message if the time zone is missing.
Prohibits a time zone offset without a + or -.
Prohibits weird (invalid) time zone offsets like 78900 or +40-5.
Fixes incorrect handling of seconds if there is no space between the time and the offset.
Allows multiple spaces between time and offset.
Added test cases for the above.