From ae4faa1d02f9d8d3356b4b9a4731093e0f76634e Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Tue, 1 Feb 2022 12:34:37 -0500 Subject: [PATCH] fix: correctly revert #11236 --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index a19b894e124..a9093ce5d55 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -490,7 +490,7 @@ exports.expires = function expires(object) { object.expireAfterSeconds = (typeof object.expires !== 'string') ? object.expires - : Math.round(ms.parse(object.expires) / 1000); + : Math.round(ms(object.expires) / 1000); delete object.expires; };