Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 65e3723

Browse files
committed
format time stamps
1 parent 4a8aaaa commit 65e3723

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

app/components/Settings/scheduler/modals/preview-modal.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,7 @@ export class PreviewModal extends Component {
477477
<Row style={rowStyle}>
478478
<div style={keyStyle}>Scheduled to run</div>
479479
<div style={valueStyle}>
480-
<Timestamp
481-
value={query.nextScheduledAt}
482-
checkIfRunning={run && run.status !== EXE_STATUS.failed}
483-
/>{' '}
480+
<Timestamp value={query.nextScheduledAt} checkIfRunning={true} />{' '}
484481
{canEdit && (
485482
<span style={{paddingLeft: '7px'}}>
486483
(

app/components/Settings/scheduler/presentational/timestamp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const formatAbsolute = (timestamp, inline) => {
2727

2828
const formatRelative = ({value, checkIfRunning}) => {
2929
if (checkIfRunning && value < Date.now()) {
30-
return 'currently running';
30+
return 'Currently running';
3131
}
3232

3333
return moment(value).fromNow();

app/components/Settings/scheduler/scheduler.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,7 @@ class IntervalFormatter extends React.Component {
223223
color: run.status !== EXE_STATUS.failed ? '#00cc96' : '#ef595b'
224224
}}
225225
>
226-
{startedAt < 60 * 1000
227-
? 'Just now'
228-
: `${ms(startedAt, {
229-
long: true
230-
})} ago`}
226+
{ms(startedAt, {long: true})} ago
231227
</div>
232228
))}
233229
{run &&

0 commit comments

Comments
 (0)