mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Fix: wrong timestamps in admin tasks page
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user