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

timezone-elements

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezone-elements

Web Components for working with different timezones

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Web Component to format an ISO8601-formatted time in the local timezone, assuming the timezone is different than the timestamp.

<time-local datetime="2016-11-10T10:00:00-08:00"></time-local>

If the user's timezone is not UTC-8, then the time-local element will display the time and optional weekday of the local timezone. For example, if the user is in UTC+10, they'll see "Fri 6:00"; but if the user is in UTC-8, then the element will be left empty.

This element is useful for events which want to publish in 'event time' but provide an optional local device fallback.

Requirements

You'll need to use this in a browser which supports Web Components or include an available polyfill.

Keywords

FAQs

Package last updated on 27 Jul 2016

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