Browse Source

feat(iot-hub): show install time in installed-items table createdTime column

Switch the createdTime column formatter from 'mediumDate' (date
only) to the custom pattern 'MMM d, y, h:mm a' so each row also
surfaces the install time. Angular's built-in 'medium' alias was
not used because it includes seconds.
pull/15772/head
Igor Kulikov 2 weeks ago
parent
commit
bf3e405ea2
  1. 2
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.html

2
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.html

@ -44,7 +44,7 @@
<!-- Installed date -->
<ng-container matColumnDef="createdTime">
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'iot-hub.installed-date' | translate }}</th>
<td mat-cell *matCellDef="let item">{{ item.createdTime | date:'mediumDate' }}</td>
<td mat-cell *matCellDef="let item">{{ item.createdTime | date:'MMM d, y, h:mm a' }}</td>
</ng-container>
<!-- Updates -->

Loading…
Cancel
Save