Commit Graph

6 Commits

Author SHA1 Message Date
Sayam Samal
4bece9189b banners: Redesign organization profile incomplete navbar banner.
As part of the banner redesign project, this commit applies the new
banner styles to the organization profile incomplete navbar banner.
2025-01-30 10:17:39 -08:00
Steve Howell
d00934b0ef bug fix: Check offsets when browser doesn't canonicalize.
This is more of a workaround than a bug fix.

Some JS implementations are less "aggressive" about
canonicalizing things like America/Montreal to America/Toronto.

We instead use offset checks.
2025-01-22 09:16:50 -08:00
Steve Howell
8227070087 timerender tests: Kill off tests for canonicalizing.
These tests are false positives in some cases, since
browser behavior varies.

We will kill off the function soon, but for now we
still maintain 100% coverage (albeit indirectly).

I also split up a test into two smaller ones.
2025-01-22 09:16:50 -08:00
Steve Howell
094b59c3e7 timerender test: Add explicit test for Montreal/Toronto.
This might not actually work in all browsers, but it
expresses our intention, and it is what works on node.
2025-01-21 13:24:58 -08:00
Kislay Udbhav Verma
a2c6c11296 timerender: Track browser time zone.
We add a variable `browser_time_zone` to track the same
separately from `display_time_zone`.

This is used to check whether the user profile time zone matches
the browser's time zone, as a part of #16957, and will later be
used in #16958.

We also add methods to check whether a given timezone is the same
as that of the browser, making use of the browser's own
canonicalization process.

Tests are added to ensure that the time zone comparison
logic works for timezones observing DST.

Fixes part of #16957
2024-12-13 12:58:09 -08:00
Anders Kaseorg
687f1b1651 tests: Rename the Node tests to *.cjs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-13 09:18:56 -08:00