Skip to content

Commit

Permalink
fix: RangeError: Invalid time value, closes #839
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Oct 21, 2024
1 parent e7ff021 commit e61f702
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ui/src/components/JobCard/Timeline/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export const Timeline = function Timeline({ job, status }: { job: AppJob; status
<li>
<small>{t('JOB.WILL_RUN_AT')}</small>
<time>
{formatDate((job.timestamp || 0) + job.opts.delay, i18n.language, dateFormats)}
{formatDate(
(job.timestamp || 0) + (job.opts.delay || job.delay || 0),
i18n.language,
dateFormats
)}
</time>
{job.delay !== job.opts.delay && <small>{t('JOB.DELAY_CHANGED')} </small>}
</li>
Expand Down

0 comments on commit e61f702

Please sign in to comment.