Compare commits
No commits in common. "57b6d19005114b3732d5265ce389df807ec1f5da" and "d328d4785929c325bd15b0057a34c064a5cea46a" have entirely different histories.
57b6d19005
...
d328d47859
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@teacinema/common",
|
"name": "@teacinema/common",
|
||||||
"version": "1.3.1",
|
"version": "1.3.0",
|
||||||
"description": "Common library for TeaCinema microservices",
|
"description": "Common library for TeaCinema microservices",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { Timestamp } from '@teacinema/contracts/gen/ts/google/protobuf/timestamp'
|
import { Timestamp } from '@teacinema/contracts/gen/ts/google/protobuf/timestamp'
|
||||||
|
|
||||||
export function timestampToISO(ts: Timestamp) {
|
export function timestampToISO(ts: Timestamp) {
|
||||||
return new Date(ts.seconds * 1000 + ts.nanos / 1_000_000).toISOString()
|
new Date(ts.seconds * 1000 + ts.nanos / 1_000_000).toISOString()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user