Skip to content

Commit

Permalink
Issue number 1075 patched in moment-timezone.js
Browse files Browse the repository at this point in the history
  • Loading branch information
raphyluke committed Dec 17, 2023
1 parent dc53e6c commit e8f27ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moment-timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@
offset;

if (mom._z === undefined) {
if (zone && needsOffset(mom) && !mom._isUTC) {
if (zone && needsOffset(mom) && !mom._isUTC && mom.isValid()) {
mom._d = moment.utc(mom._a)._d;
mom.utc().add(zone.parse(mom), 'minutes');
}
Expand Down

0 comments on commit e8f27ca

Please sign in to comment.