diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-04-06 22:13:11 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-04-06 22:13:11 +0300 |
commit | 608d3fde68f7a4a3ee56430ee3303b85cfefe231 (patch) | |
tree | a9516a4c9147a56678610b77c4c47447195b51f9 /src/Storage | |
parent | 6e7705dfe87ace89df8feb76345d2483fd829d01 (diff) |
Fix for changed build time format generated by S3D
Diffstat (limited to 'src/Storage')
-rw-r--r-- | src/Storage/FileInfoParser.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Storage/FileInfoParser.cpp b/src/Storage/FileInfoParser.cpp index 6e34d16f..17a25a65 100644 --- a/src/Storage/FileInfoParser.cpp +++ b/src/Storage/FileInfoParser.cpp @@ -813,10 +813,14 @@ bool FileInfoParser::FindPrintTime(const char* buf, size_t len) noexcept if (*pos == 'h') { hours = secs; - if (StringStartsWithIgnoreCase(pos, "hours")) + if (StringStartsWithIgnoreCase(pos, "hours")) // S3D { pos += 5; } + else if (StringStartsWithIgnoreCase(pos, "hour")) // S3D now prints "1 hour 42 minutes" + { + pos += 4; + } else { ++pos; |