diff options
| author | Alexander Filippov <a.filippov@yadro.com> | 2018-11-16 16:26:04 +0300 |
|---|---|---|
| committer | Gunnar Mills <gmills@us.ibm.com> | 2018-12-07 18:18:56 +0000 |
| commit | dbf048119670aabcdff6c35fe6873f0ac7555a69 (patch) | |
| tree | ff2ad25c001f3b98c19a773b32d250bebfe56362 /app/common/directives/log-event.html | |
| parent | bd500cd2d6841a7d0a7d69bdccfc5d46026380a8 (diff) | |
| download | phosphor-webui-dbf048119670aabcdff6c35fe6873f0ac7555a69.tar.gz phosphor-webui-dbf048119670aabcdff6c35fe6873f0ac7555a69.zip | |
fix date/time representation in national locales
Added "localeDate" filter to present date and time in preferred format:
- the date will be displayed as: 'Dec 3, 2018'
- the time will be displayed in locale preferred format.
- the timezone will be displayed as abbrev or GMT+/-offset.
At the 'Date and Time setting' the time zone name will displayed in long
format if it is possible.
All text parts of date/time representation will be in English.
Resolves: openbmc/phosphor-webui#42
Change-Id: I2fdbb47c62dfc5000039b0c00a20f64a9a389fc6
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
Diffstat (limited to 'app/common/directives/log-event.html')
| -rw-r--r-- | app/common/directives/log-event.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/common/directives/log-event.html b/app/common/directives/log-event.html index 3ec3c91..344dccb 100644 --- a/app/common/directives/log-event.html +++ b/app/common/directives/log-event.html @@ -24,7 +24,7 @@ <p class="inline event__priority event-resolved" ng-hide="event.Resolved == 0">Resolved</p> <p class="inline event__priority" ng-class="{'low-priority': event.priority == 'Low', 'medium-priority': event.priority == 'Medium', 'high-priority': event.priority == 'High'}">{{event.priority}}</p> <p class="inline event__severity" ng-class="{'low-priority': event.priority == 'Low', 'medium-priority': event.priority == 'Medium', 'high-priority': event.priority == 'High'}">{{event.severity_code}}</p> - <p class="event__timestamp">{{(tmz == 'UTC' ? (event.Timestamp | date:'medium': tmz) : (event.Timestamp | date:'medium')) + ' ' + tmz}}</p> + <p class="event__timestamp">{{ event.Timestamp | localeDate : (tmz =='UTC') }}</p> <div> <p class="inline event__description">{{getTitle(event)}}</p> </div> |

