Skip to content

Commit

Permalink
This change updates the date time format used on the jobs page
Browse files Browse the repository at this point in the history
from 12 hr to 24 hr utc. This change is needed since the rest of
crdb uses 24 hr utc time.

Release note (ui change): change date times on jobs page to use
24 hr utc
  • Loading branch information
Santamaura committed Aug 13, 2021
1 parent f673e97 commit a945ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ui/src/views/jobs/jobTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import React, { MouseEvent } from "react";
import _ from "lodash";
import { cockroach } from "src/js/protos";
import { TimestampToMoment } from "src/util/convert";
import { DATE_FORMAT } from "src/util/format";
import { DATE_FORMAT_24_UTC } from "src/util/format";
import { JobStatusCell } from "src/views/jobs/jobStatusCell";
import { SortSetting } from "src/views/shared/components/sortabletable";
import { CachedDataReducerState } from "src/redux/cachedDataReducer";
Expand Down Expand Up @@ -59,7 +59,7 @@ const jobsTableColumns: ColumnDescriptor<Job>[] = [
{
name: "creationTime",
title: "Creation Time",
cell: (job) => TimestampToMoment(job?.created).format(DATE_FORMAT),
cell: (job) => TimestampToMoment(job?.created).format(DATE_FORMAT_24_UTC),
sort: (job) => TimestampToMoment(job?.created).valueOf(),
},
{
Expand Down

0 comments on commit a945ffd

Please sign in to comment.