mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 15:58:56 +00:00
LibJS: Use correct epoch offset in InterpretISODateTimeOffset
This commit is contained in:
parent
9face18ab2
commit
7aee254708
Notes:
github-actions[bot]
2024-11-26 20:15:20 +00:00
Author: https://github.com/trflynn89
Commit: 7aee254708
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2596
Reviewed-by: https://github.com/gmta ✅
2 changed files with 11 additions and 1 deletions
|
@ -114,7 +114,7 @@ ThrowCompletionOr<Crypto::SignedBigInteger> interpret_iso_date_time_offset(VM& v
|
|||
auto rounded_candidate_nanoseconds = round_number_to_increment(candidate_offset, NANOSECONDS_PER_MINUTE, RoundingMode::HalfExpand);
|
||||
|
||||
// ii. If roundedCandidateNanoseconds = offsetNanoseconds, then
|
||||
if (candidate_offset.compare_to_double(offset_nanoseconds) == Crypto::UnsignedBigInteger::CompareResult::DoubleEqualsBigInt) {
|
||||
if (rounded_candidate_nanoseconds.compare_to_double(offset_nanoseconds) == Crypto::UnsignedBigInteger::CompareResult::DoubleEqualsBigInt) {
|
||||
// 1. Return candidate.
|
||||
return move(candidate);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue