
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
moment-timezone-picker
Advanced tools
For select input @ng-select/ng-select For time core moment-timezone
npm i moment-timezone-picker --save
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { MomentTimezonePickerModule } from 'moment-timezone-picker'; //add this
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
MomentTimezonePickerModule //add this
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
<ng-moment-timezone-picker (onselect)="yourFunc($event)"
[customPlaceholderText]="yourText">
</ng-moment-timezone-picker>
Input | Type | Default | Required | Description |
---|---|---|---|---|
[customPlaceholderText] | string | Choose... | no | Allows you to localize the placeholder text. |
[getUserZone] | boolean | false | no | Allows you to guess user timezone. If true also emits value on init. |
[setZone] | string | null | no | Allows to set default zone on init. Example America/Los_Angeles . |
Output | Description |
---|---|
(onselect) | Returns object with 5 keys (TZone) |
Field | Type | Example |
---|---|---|
abbr | string | GMT |
group | string | Europe |
nameValue | string | Europe/London |
timeValue | string | +00:00 |
name | string | Europe/London (+00:00) |
FAQs
A simple angular moment timezone picker
The npm package moment-timezone-picker receives a total of 1,183 weekly downloads. As such, moment-timezone-picker popularity was classified as popular.
We found that moment-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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.