Skip to content

Commit

Permalink
feat(date): add date object to returned formatted date fields
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Aug 29, 2024
1 parent e0a231b commit 1212d42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/format-data-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ function parseUnixTimestamp(
// If a UTC T/Z timestamp returned
date = new Date(timestamp);
}
dataRow[key] = { short: formatDate(date), long: date.toUTCString() };
dataRow[key] = {
short: formatDate(date),
long: date.toUTCString(),
date: date,
};
}
});
return dataRow;
Expand Down

0 comments on commit 1212d42

Please sign in to comment.