mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +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>