root: return API dates as timestamp

This commit is contained in:
Jens Langhammer
2020-12-28 13:07:49 +01:00
parent 119adb3e7b
commit 5f9c1e229c
2 changed files with 5 additions and 0 deletions

View File

@ -50,3 +50,7 @@ export function loading<T>(v: T, actual: TemplateResult): TemplateResult {
}
return actual;
}
export function time(t: string): Date {
return new Date(parseInt(t, 10) * 1000);
}