legiblenews / community

Issues, discussions, and roadmaps for Legible News
11 stars 0 forks source link

Email subscription page jumps when it first loads #17

Closed paustint closed 9 months ago

paustint commented 1 year ago

When the page first loads, this text is shown: You are subscribed to the daily edition of Legible News. The November 11 issue will be emailed to X tomorrow at 5:00pm.

Immediately after, the text changes to: You are subscribed to the daily edition of Legible News. The Thursday issue will be emailed to X tomorrow at 5:00pm.

  1. The page should be stable and should not change immediately after being loaded
  2. Not sure where November 11 is coming from, current date/time: Wed Nov 09 2022 18:24:06 GMT-0700 (Mountain Standard Time) Thursday (tomorrow) is November 10, not November 11
bradgessler commented 9 months ago

Thanks for reporting! This is working as designed (which isn't ideal) because it loads UTC, then the JS kicks in after the page loads and adjust the time to your local offset. The alternative is I block the loading of the page to apply the TZ, which would slow things down.

I don't have any plans on fixing this unless this library gets updated. For now I'll close this issue and hope a future bundle update fixes it.