10 Best JavaScript Timezone Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

dft

date-fns-tz

Complementary library for date-fns v2 adding IANA time zone support

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
470
Weekly Downloads
634K
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Tree-Shakeable

moment-timezone

Timezone support for moment.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.6/ 5
10
Top Feedback
9Great Documentation
8Easy to Use
4Highly Customizable
GitHub Stars
4K
Weekly Downloads
6M
Last Commit
8mos ago
Bundle Size (min+gzip)
100.9KB
Not Tree-Shakeable

js-joda

🕑 Immutable date and time library for javascript

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: Built-In
TypeScript Icon
Deprecated
User Rating
1.0/ 5
1
Top Feedback
1Hard to Use
GitHub Stars
1K
Weekly Downloads
25K
Last Commit
5d ago
Bundle Size (min+gzip)
39.3KB
Tree-Shakeable
tj

timezones.json

Full list of timezones

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
3.0/ 5
1
Top Feedback
N/A
GitHub Stars
556
Weekly Downloads
12K
Last Commit
2mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

@js-joda/timezone

🕑 Immutable date and time library for javascript

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
42K
Last Commit
5d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
spa

spacetime

A lightweight javascript timezone library

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
29K
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Tree-Shakeable
gt

geo-tz

A node.js module to find the timezone based on gps coordinates

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
202
Weekly Downloads
32K
Last Commit
1yr ago
Bundle Size (min+gzip)
51.4KB
Not Tree-Shakeable
tim

timezone

Full-blown timezone aware date math and formatting for JavaScript in 2.7k.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
247
Weekly Downloads
19K
Last Commit
6mos ago
Bundle Size (min+gzip)
2.75KB
Not Tree-Shakeable
jst

jstz

🌐Timezone detection for JavaScript

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
160
Weekly Downloads
82K
Last Commit
3yrs ago
Bundle Size (min+gzip)
4.10KB
Not Tree-Shakeable

tz-lookup

JavaScript Library for Timezone Lookup by Location

License Icon
License: CC0-1.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
177
Weekly Downloads
27K
Last Commit
2yrs ago
Bundle Size (min+gzip)
27.8KB
Not Tree-Shakeable
tj

timezone-js

DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
TypeScript Icon
Deprecated
User RatingN/A
Top Feedback
N/A
GitHub Stars
829
Weekly Downloads
23K
Last Commit
4yrs ago
Bundle Size (min+gzip)
5.79KB
Not Tree-Shakeable

@mapbox/timespace

compute fuzzy local time from a location

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
53
Weekly Downloads
1K
Last Commit
4yrs ago
Bundle Size (min+gzip)
165.9KB
Not Tree-Shakeable