Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cordova-plugin-datetime-picker
Advanced tools
Cordova Date Time Picker Plugin to utilise the native Windows Phone 8 toolkit date and time selectors.
for Apache Cordova (Windows Phone 8)
cordova plugin add cordova-plugin-datetime-picker
cordova plugin add https://github.com/leecrossley/cordova-plugin-datetime-picker.git
Currently requires you to include the Microsoft.Phone.Controls.Toolkit and Coding4Fun.Toolkit.Controls (both available via nuget), although I'm working to break this dependency.
Coding4Fun.Toolkit.Controls is used for the timepicker, as the default WPToolkit implementation does not support intervals (steps), such as being able to only select 15 minute intervals.
You do not need to reference any JavaScript, the Cordova plugin architecture will add a datetimepicker object to your root automatically when you build.
Ensure you use the plugin after your deviceready event has been fired.
var onDateSelected = function (date) {
console.log(new Date(parseInt(date, 10)));
}
datetimepicker.selectDate(onDateSelected);
var onTimeSelected = function (time) { console.log(new Date(parseInt(time, 10))); }
datetimepicker.selectTime(onTimeSelected);
Once the date is selected, the callback function `onDateSelected` will log the selected date (as a JavaScript Date object) to the console.
### Screenshot
![Screenshot](https://raw.githubusercontent.com/leecrossley/cordova-plugin-datetime-picker/master/screenshot.jpg)
## Platforms
Windows Phone 8 support only.
### Credits
This plugin is based on code written by sbregnov and hypermurea.
## License
[MIT License](http://ilee.mit-license.org)
FAQs
Cordova Date Time Picker Plugin to utilise the native Windows Phone 8 toolkit date and time selectors.
The npm package cordova-plugin-datetime-picker receives a total of 1 weekly downloads. As such, cordova-plugin-datetime-picker popularity was classified as not popular.
We found that cordova-plugin-datetime-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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.