diff --git a/parse.go b/parse.go index 2decf1e..a4af062 100644 --- a/parse.go +++ b/parse.go @@ -24,6 +24,8 @@ var listLineParsers = []parseFunc{ var dirTimeFormats = []string{ "01-02-06 03:04PM", "2006-01-02 15:04", + "01-02-2006 03:04PM", + "01-02-2006 15:04", } // parseRFC3659ListLine parses the style of directory line defined in RFC 3659. diff --git a/parse_test.go b/parse_test.go index 8bcd45a..f53a61e 100644 --- a/parse_test.go +++ b/parse_test.go @@ -68,7 +68,9 @@ var listTests = []line{ // DOS DIR command output {"08-07-15 07:50PM 718 Post_PRR_20150901_1166_265118_13049.dat", "Post_PRR_20150901_1166_265118_13049.dat", 718, EntryTypeFile, newTime(2015, time.August, 7, 19, 50)}, {"08-10-15 02:04PM