feat(ui): socket event timestamps have ms precision

This commit is contained in:
psychedelicious 2023-07-17 17:35:20 +10:00
parent ba12849685
commit af9e8fefce

View File

@ -3,4 +3,5 @@ import dateFormat from 'dateformat';
/**
* Get a `now` timestamp with 1s precision, formatted as ISO datetime.
*/
export const getTimestamp = () => dateFormat(new Date(), 'isoDateTime');
export const getTimestamp = () =>
dateFormat(new Date(), `yyyy-mm-dd'T'HH:MM:ss:lo`);