normalizeZone uses offset on a Zone for the duck test, but incorrectly assumes it is a property that returns a number when in fact it is a function/method on Zone.
The duck test is particularly important for scenarios where package dependencies brought in their own copy of luxon (perhaps due to version mismatches), causing the instance of check to fail. The duck test helps ensure compatibility with other instances of luxon modules.
Fixes #1426
normalizeZone
usesoffset
on a Zone for the duck test, but incorrectly assumes it is a property that returns a number when in fact it is a function/method on Zone.The duck test is particularly important for scenarios where package dependencies brought in their own copy of luxon (perhaps due to version mismatches), causing the
instance of
check to fail. The duck test helps ensure compatibility with other instances of luxon modules.