Fix: wrong timestamps in admin tasks page

This commit is contained in:
Arik Fraimovich
2017-02-27 17:51:00 +02:00
parent ef020e88e7
commit bccfef533e
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
import moment from 'moment';
export default function (ngModule) {
ngModule.filter('toMilliseconds', () => value => value * 1000.0);
ngModule.filter('dateTime', clientConfig =>
function dateTime(value) {
if (!value) {

View File

@@ -38,9 +38,9 @@
<td>{{row.query_id}}</td>
<td>{{row.query_hash}}</td>
<td>{{row.run_time | durationHumanize}}</td>
<td>{{row.created_at | dateTime }}</td>
<td>{{row.started_at | dateTime }}</td>
<td>{{row.updated_at | dateTime }}</td>
<td>{{row.created_at | toMilliseconds | dateTime }}</td>
<td>{{row.started_at | toMilliseconds | dateTime }}</td>
<td>{{row.updated_at | toMilliseconds | dateTime }}</td>
<td ng-if="selectedTab === 'in_progress'">
<cancel-query-button query-id="dataRow.query_id" task-id="dataRow.task_id"></cancel-query-button>
</td>