department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
284 stars 206 forks source link

Replace moment timezone adjustments with date-fns timezone helpers and local Date object #95064

Open simiadebowale opened 1 month ago

simiadebowale commented 1 month ago

We should be able to replace uses of moment-timezone's .tz() helper in our application code and switch to the date-fns timezone helpers or the local Date object. Those helpers rely on polyfilled timezone data, so this should result in some reduction in bundle size for most users.

Important:

AC:

JunTaoLuo commented 1 month ago

Is this a duplicate of https://github.com/department-of-veterans-affairs/va.gov-team/issues/22635?