Switch time display components to use locale-aware format strings
This commit is contained in:
parent
db53f82a34
commit
49dff5729c
2 changed files with 3 additions and 3 deletions
|
@ -13,9 +13,9 @@ export class TimeDisplayComponent {
|
|||
|
||||
private getFormat(dateOnly: boolean): string {
|
||||
if (dateOnly) {
|
||||
return 'ddd, MMM Do YYYY';
|
||||
return 'll';
|
||||
}
|
||||
|
||||
return 'ddd, MMM Do YYYY, h:mm A';
|
||||
return 'llll';
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue