[Toybox] [PATCH] Fix year parsing in date(1).

enh enh at google.com
Thu Nov 12 08:33:04 PST 2015


ping? (since this was a reported bug from a test team i'd like to get
this in this week's sync.)

On Tue, Nov 10, 2015 at 6:25 PM, enh <enh at google.com> wrote:
> Four-digit years were being mangled by the code for two-digit years.
> Move all the two-digit year code into the "we only saw two digits" case.
>
> Add some new tests and fix existing tests.
> ---
>  tests/date.test   |  8 ++++++--
>  toys/posix/date.c | 10 ++++++----
>  2 files changed, 12 insertions(+), 6 deletions(-)
>
> --
> Elliott Hughes - http://who/enh - http://jessies.org/~enh/
> Android native code/tools questions? Mail me/drop by/add me as a reviewer.



-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.

 1447345984.0


More information about the Toybox mailing list