fix: fix types
This commit is contained in:
parent
d328d47859
commit
ac1007c0dc
@ -1,5 +1,5 @@
|
||||
import { Timestamp } from '@teacinema/contracts/gen/ts/google/protobuf/timestamp'
|
||||
|
||||
export function timestampToISO(ts: Timestamp) {
|
||||
new Date(ts.seconds * 1000 + ts.nanos / 1_000_000).toISOString()
|
||||
return new Date(ts.seconds * 1000 + ts.nanos / 1_000_000).toISOString()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user