
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
moment-timezone
Advanced tools
IANA Time zone support for Moment.js
Moment-Timezone is an add-on for Moment.js. Both are considered legacy projects, now in maintenance mode. In most cases, you should choose a different library.
For more details and recommendations, please see Project Status in the Moment docs.
Thank you.
var june = moment("2014-06-01T12:00:00Z");
june.tz('America/Los_Angeles').format('ha z'); // 5am PDT
june.tz('America/New_York').format('ha z'); // 8am EDT
june.tz('Asia/Tokyo').format('ha z'); // 9pm JST
june.tz('Australia/Sydney').format('ha z'); // 10pm EST
var dec = moment("2014-12-01T12:00:00Z");
dec.tz('America/Los_Angeles').format('ha z'); // 4am PST
dec.tz('America/New_York').format('ha z'); // 7am EST
dec.tz('Asia/Tokyo').format('ha z'); // 9pm JST
dec.tz('Australia/Sydney').format('ha z'); // 11pm EST
Moment-timezone is freely distributable under the terms of the MIT license.
0.6.0 2025-05-25
moment-timezone-with-data.js).This release is a potential breaking change for TypeScript projects only. The types are now more accurate, but consumers might hit errors if they were relying on the more relaxed types.
No implementation code has changed in this release.
date-fns-tz is a timezone support add-on for date-fns, a modern JavaScript date utility library. It provides similar functionalities for handling timezones but with a more modular approach, which can result in smaller bundle sizes if only specific functions are imported.
Luxon is a powerful, modern, and friendly wrapper for JavaScript dates and times. It includes comprehensive timezone support and compares to moment-timezone with a more fluent and chainable API, as well as being immutable, which can help prevent bugs in date-related code.
Day.js is a minimalist JavaScript library for parsing, validating, manipulating, and formatting dates, similar to moment.js. With its plugin 'utc' and 'timezone', it can provide similar timezone handling capabilities as moment-timezone, but with a smaller footprint and a simpler API.
Spacetime is a lightweight way to manipulate, traverse, compare, and format dates and times across planet Earth. It offers a different approach to handling timezones and date-time manipulation with a focus on performance and a smaller size compared to moment-timezone.
FAQs
Parse and display moments in any timezone.
The npm package moment-timezone receives a total of 11,604,350 weekly downloads. As such, moment-timezone popularity was classified as popular.
We found that moment-timezone demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.