You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did a little bit of digging and it appears the "z" and "zz" format options are deprecated. See moment/moment#162
Base on the suggestions in that thread "z" works for me when I import "moment-timezone", and I either set Moment.globalTimezone or add the tz attribute to Moment. For example:
Ahh I see, the inclusion of tz did fix it, thank you so much for the insight! What I ended up doing is using tz.guess() instead of just displaying all times in Eastern time 😛:
I am trying to display a timestamp to the user in the format
16:00 EST
using the following code segment:However, instead of
16:00 EST
I am just getting16:00
.I have tried this same formatting string on regular JavaScript moment and it worked perfectly fine.
The text was updated successfully, but these errors were encountered: