Page MenuHomePhabricator

[web] Remove timeZone from Redux state
ClosedPublic

Authored by ashoat on Dec 21 2022, 8:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 2:09 AM
Unknown Object (File)
Mon, Nov 4, 3:17 AM
Unknown Object (File)
Mon, Nov 4, 3:17 AM
Unknown Object (File)
Mon, Nov 4, 3:16 AM
Unknown Object (File)
Mon, Nov 4, 3:16 AM
Unknown Object (File)
Mon, Nov 4, 3:16 AM
Unknown Object (File)
Mon, Nov 4, 3:16 AM
Unknown Object (File)
Mon, Nov 4, 3:13 AM
Subscribers
None

Details

Summary

We probably should've never had this in Redux state... would've been more appropriate in React context.

Basically we need to render timestamps in client time instead of server time during SSR, we needed some context to tell components if they needed to shift timestamps to accomodate a timezone.

Following the parent diff, we no longer need to render client timestamps on the server, so we can remove this code.

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 22 2022, 8:28 AM
This revision was automatically updated to reflect the committed changes.