Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jstimezonedetect

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jstimezonedetect

This script gives you the zone info key representing your device's time zone setting. The return value is an IANA zone info key (aka the Olson time zone database).

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
206K
increased by11.03%
Maintainers
2
Weekly downloads
 
Created

What is jstimezonedetect?

The jstimezonedetect npm package is a simple utility for detecting the time zone of a user's browser. It provides a straightforward way to get the time zone information, which can be useful for applications that need to display time-sensitive data correctly according to the user's local time zone.

What are jstimezonedetect's main functionalities?

Detecting the user's time zone

This feature allows you to detect the user's time zone. The code sample demonstrates how to use the jstimezonedetect package to determine the time zone and log it to the console.

const jstz = require('jstimezonedetect');
const timezone = jstz.determine().name();
console.log('Your time zone is:', timezone);

Other packages similar to jstimezonedetect

Keywords

FAQs

Package last updated on 09 Sep 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc