mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
The reason utcToZonedTime would return an invalid Date (i.e. ‘new Date(NaN)’) is because we passed in an invalid timezone. Fix the comments and tests to reflect this; remove unnecessary mocking and the misleading ‘instanceof Date’ check. Signed-off-by: Anders Kaseorg <anders@zulip.com>