Streaming live at 10am (PST)

Display time in user time zone on CMS collection of events

I have a collection of events here.

I would like to:

  • display time in user local time
  • send date and time via the form (at the moment it only sends date so if I have two events on the same day they are not differentiated)

I’ve understood I could use Moment.js for local time display but I have no clue on how to install it.

Whoever is getting this job, make sure to work with something other than Moment.JS. Even though it still usable, it recently got into legacy mode. (It’s not really smart to start a project with a legacy plugin)

There are newer libraries that do a better job than moment.js when we talk about good practices and functional programming. https://date-fns.org/ is a good option

2 Likes