Skip to content

Commit

Permalink
fix: restore old behavior of string utcOffset param
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Sep 23, 2023
1 parent edbca18 commit 619a172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 619a172

Please sign in to comment.