[Moment.js] - What is moment().tz() in Moment.js? - | SheCodes

[Moment.js] - What is moment().tz() in Moment.js?

Moment().tz() is a method in Moment.js which gets the current time zone offset, taking into account daylight savings time. See the Moment.js documentation for details & examples.

πŸ‘©β€πŸ’» Technical question

moment().tz();