Skip to content

Commit

Permalink
Merge pull request #19230 from jeclrsg/hpcc-32857-logs-timestamp-form…
Browse files Browse the repository at this point in the history
…atter

HPCC-32857 ECL Watch v9 Logs grid timestamp formatter
  • Loading branch information
GordonSmith authored Nov 7, 2024
2 parents 624d422 + 620b3a5 commit 0594b5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion esp/src/src-react/components/Logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ export const Logs: React.FunctionComponent<LogsProps> = ({
formatter: ts => {
if (ts) {
if (ts.indexOf(":") < 0) {
return timestampToDate(ts).toISOString();
const date = timestampToDate(ts);
if (!isNaN(date.getTime())) {
return date.toISOString();
}
return ts;
}
return formatDateString(ts);
}
Expand Down

0 comments on commit 0594b5f

Please sign in to comment.