|
@@ -110,7 +110,9 @@ Optional<Core::DateTime> parse_utc_time(StringView time)
|
|
return {};
|
|
return {};
|
|
}
|
|
}
|
|
|
|
|
|
- auto full_year = (Core::DateTime::now().year() / 100) * 100 + year_in_century.value();
|
|
|
|
|
|
+ // RFC5280 section 4.1.2.5.1.
|
|
|
|
+ auto full_year = year_in_century.value();
|
|
|
|
+ full_year += (full_year < 50) ? 2000 : 1900;
|
|
auto full_seconds = seconds.value_or(0);
|
|
auto full_seconds = seconds.value_or(0);
|
|
|
|
|
|
// FIXME: Handle offsets!
|
|
// FIXME: Handle offsets!
|