diff --git a/src/lib/utils/timestamp-to-iso.util.ts b/src/lib/utils/timestamp-to-iso.util.ts index 54146f2..c6f5701 100644 --- a/src/lib/utils/timestamp-to-iso.util.ts +++ b/src/lib/utils/timestamp-to-iso.util.ts @@ -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() }