Compare commits
2 Commits
d328d47859
...
57b6d19005
| Author | SHA1 | Date | |
|---|---|---|---|
| 57b6d19005 | |||
| ac1007c0dc |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@teacinema/common",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "Common library for TeaCinema microservices",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.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()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user