Include metadata from recordings.

This commit is contained in:
Dermot Duffy
2023-01-29 11:26:48 -08:00
parent 1ad600c231
commit 5fb2a9d3ed
4 changed files with 44 additions and 9 deletions
+9
View File
@@ -116,6 +116,15 @@ export const formatDateAndTime = (date: Date): string => {
return format(date, 'yyyy-MM-dd HH:mm');
};
/**
* Format a date object to RFC3339.
* @param date A Date object.
* @returns A date.
*/
export const formatDate = (date: Date): string => {
return format(date, 'yyyy-MM-dd');
};
/**
* Run a function in idle periods. If idle callbacks are not supported (e.g.
* Safari) the callback is run immediately.