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

react-timezone-select

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-timezone-select - npm Package Compare versions

Comparing version 0.9.12 to 0.9.13

2

package.json
{
"name": "react-timezone-select",
"version": "0.9.12",
"version": "0.9.13",
"description": "Usable, dynamic React Timezone Select",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -100,6 +100,8 @@ # 🌐⌚ react-timezone-select

New in `v0.9.11`, we shipped a new prop to allow users to fully replace the timezone choices, or simply append a few custom choices.
Available in `v0.9.11+` - we've shipped a new prop to allow users to fully replace the timezone choices, or simply append custom choices of their own.
The prop `timezones` takes an object where the key/value format is simply `'Official Timezone Name' : 'Your Label for it'`. So for example:
The prop `timezones` takes an object where the key/value format is: `'Official Timezone Name' : 'Your Label for it'`.
For example:
```

@@ -112,4 +114,2 @@ import { TimezoneSelect, i18nTimezones } from 'react-timezone-select'

onChange={setSelectedTimezone}
labelStyle={labelStyle}
onBlur={() => console.log('Blur!')}
timezones={{

@@ -123,3 +123,3 @@ ...i18nTimezones

Here you can see we're simply appending two new choices to the existing ones. You can omit the `i18nTimezones` object in the prop though and pass in your own complete custom list of timezone options.
Here you can see how to append two new choices to the existing ones (`i18nTimezones`). You can also omit the `i18nTimezones` object in the prop and pass your own completely custom list of timezone choices.

@@ -132,4 +132,5 @@ ## 🚧 Contributing

- [All Contributors](https://github.com/ndom91/react-timezone-select/graphs/contributors)
- [Carlos Matallin](https://github.com/matallo/)
- [spacetime](https://github.com/spencermountain/spacetime)
- [react-select](https://react-select.com)
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