From 49dff5729c792aa0acf07fe0116f0a7ea7ee2840 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 27 Nov 2017 16:03:54 +0200 Subject: [PATCH] Switch time display components to use locale-aware format strings --- static/js/directives/ui/time-ago/time-ago.component.html | 2 +- .../js/directives/ui/time-display/time-display.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/directives/ui/time-ago/time-ago.component.html b/static/js/directives/ui/time-ago/time-ago.component.html index a718716b2..0748eee21 100644 --- a/static/js/directives/ui/time-ago/time-ago.component.html +++ b/static/js/directives/ui/time-ago/time-ago.component.html @@ -1,5 +1,5 @@ - + Unknown diff --git a/static/js/directives/ui/time-display/time-display.component.ts b/static/js/directives/ui/time-display/time-display.component.ts index 86bad99d6..fd80c35ce 100644 --- a/static/js/directives/ui/time-display/time-display.component.ts +++ b/static/js/directives/ui/time-display/time-display.component.ts @@ -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'; } }