Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.