Add date markers
This commit is contained in:
parent
34d89c75b2
commit
50d735aaa3
7 changed files with 218 additions and 92 deletions
|
@ -137,6 +137,9 @@ export function timestamp(date = new Date()) {
|
|||
return `${h}:${m}`;
|
||||
}
|
||||
|
||||
const dateFmt = new Intl.DateTimeFormat(window.navigator.language);
|
||||
export const formatDate = dateFmt.format;
|
||||
|
||||
const canvas = document.createElement('canvas');
|
||||
const ctx = canvas.getContext('2d');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue