Compare commits

...

2 Commits

Author SHA1 Message Date
57b6d19005 1.3.1
All checks were successful
Publish / Publish npm package action (push) Successful in 42s
2026-04-12 08:40:20 +03:00
ac1007c0dc fix: fix types 2026-04-12 08:40:15 +03:00
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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()
}