From 71c6e7b244683d970325e43726a56408e127dd32 Mon Sep 17 00:00:00 2001 From: Kevin Ness <46825870+nekevss@users.noreply.github.com> Date: Wed, 25 Dec 2024 15:30:21 -0600 Subject: [PATCH] Adjust call to correct method (#4096) --- core/engine/src/builtins/temporal/plain_date_time/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/engine/src/builtins/temporal/plain_date_time/mod.rs b/core/engine/src/builtins/temporal/plain_date_time/mod.rs index d7ab63c04dc..f25c41f2f91 100644 --- a/core/engine/src/builtins/temporal/plain_date_time/mod.rs +++ b/core/engine/src/builtins/temporal/plain_date_time/mod.rs @@ -840,7 +840,7 @@ impl PlainDateTime { let options = get_options_object(args.get_or_undefined(1))?; let settings = get_difference_settings(&options, context)?; - create_temporal_duration(dt.inner.until(&other, settings)?, None, context).map(Into::into) + create_temporal_duration(dt.inner.since(&other, settings)?, None, context).map(Into::into) } // TODO(nekevss): finish after temporal_rs impl