![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
bootstrap4-timezone-picker
Advanced tools
timezone-picker is the plugin to select and get timezone value of selected area from WorldMap.
npm install --save timezone-picker
Include the following lines of code in the section of your HTML.
<script type="text/javascript" src="[yourpath]/jquery.min.js"></script>
<script type="text/javascript" src="[yourpath]/timezone-picker.js"></script>
Select any dom element where you want to create map.
$(selector).timezonePicker();
First parameter takes timezone string for example: 'Asia/Kolkata' (zone name). Second parameter is optinal when 1st parameter is zonename
$(selector).data('timezonePicker').setValue('Asia/Kolkata')
When you want to pass offset value as 1st parameter 2nd parameter should be 'offset'
$(selector).data('timezonePicker').setValue('5.5','offset')
When you want to pass country code as 1st parameter 2nd parameter should be 'country'
$(selector).data('timezonePicker').setValue('IN','country')
It returns object containing timezone details of seleted area:
$(selector).data('timezonePicker').getValue()
Sameple returned Object
[
{
"selected":true,
"zonename":"IST",
"offset":5.5,
"pin":"361,115",
"country":"LK",
"timezone": "Asia/Colombo",
},
{
"zonename":"IST",
"offset":5.5,
"pin": "373,94",
"country":"IN",
"timezone": "Asia/Kolkata",
}
]
It is available under the MIT LICENSE
FAQs
Select your timezone using world map
The npm package bootstrap4-timezone-picker receives a total of 47 weekly downloads. As such, bootstrap4-timezone-picker popularity was classified as not popular.
We found that bootstrap4-timezone-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.