From 619a172b39dec70ca0653c57ca31280f96cce580 Mon Sep 17 00:00:00 2001 From: Pierre Cavin Date: Sat, 23 Sep 2023 18:30:10 +0200 Subject: [PATCH] fix: restore old behavior of string utcOffset param --- lib/time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/time.js b/lib/time.js index c75dace7..c5bdaed8 100644 --- a/lib/time.js +++ b/lib/time.js @@ -167,7 +167,7 @@ function CronTime(luxon) { let utcZone = 'UTC'; - if (this.utcOffset < 0) { + if (parseInt(this.utcOffset) < 0) { utcZone += `${ offsetHours === 0 ? '-0' : offsetHours }:${offsetMinsStr}`;