# # # patch "dates.cc" # from [e408c478777f809bf54b3229e561efcd21b6a2ed] # to [7d11d76f600620129b8a7f0b9416ced85d70c24d] # ============================================================ --- dates.cc e408c478777f809bf54b3229e561efcd21b6a2ed +++ dates.cc 7d11d76f600620129b8a7f0b9416ced85d70c24d @@ -301,6 +301,17 @@ date_t::from_string(string const & s) string d = s; size_t i = d.size() - 1; // last character of the array + // check the first character which is not a digit + while (d.at(i) >= '0' && d.at(i) <= '9') + i--; + + // ignore milliseconds, if present, or go back to the end of the date + // string to parse the digits for seconds. + if (d.at(i) == '.') + i--; + else + i = d.size() - 1; + // seconds u8 sec; N(d.at(i) >= '0' && d.at(i) <= '9'