From 519ae3d37145e92533b2ac03b50e1f94b1cc53d8 Mon Sep 17 00:00:00 2001 From: Piotr Date: Sun, 28 Apr 2024 19:03:07 +0200 Subject: [PATCH] fix: fix duration when creating with partial object parameter (#2633) The Duration creator returned incomplete duration if passed the object parameter that's partial. --- src/plugin/duration/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugin/duration/index.js b/src/plugin/duration/index.js index e2060c344..0807d14c3 100644 --- a/src/plugin/duration/index.js +++ b/src/plugin/duration/index.js @@ -78,6 +78,7 @@ class Duration { this.$d[prettyUnit(k)] = input[k] }) this.calMilliseconds() + this.parseFromMilliseconds() return this } if (typeof input === 'string') {