Closed gronke closed 8 months ago
Hi, thanks for your contribution. Unfortunately this PR won't be accepted into the project, for a few reasons:
.tz()
is treated the same as not providing an argument. This includes false
, undefined
, null
, ''
and 0
. (I'm not saying this is an ideal API, just the reality of the situation.) This PR would change the behaviour of just one of those cases, unexpectedly.instance.tz(moment.defaultZone.name)
Allow resetting to defaultZone by calling
tz(null)
.