Skip to content

Commit

Permalink
Merge pull request #226 from sobanieca/patch-1
Browse files Browse the repository at this point in the history
Date type for amLocale pipe
  • Loading branch information
urish authored Nov 8, 2019
2 parents 3dcbf6c + 24e6aca commit 6238093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/locale.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const momentConstructor = moment;

@Pipe({ name: 'amLocale' })
export class LocalePipe implements PipeTransform {
transform(value: string, locale: string): moment.Moment {
transform(value: string | Date, locale: string): moment.Moment {
return momentConstructor(value).locale(locale);
}
}

0 comments on commit 6238093

Please sign in to comment.