mirror of
https://github.com/hcengineering/platform.git
synced 2025-02-18 18:03:25 +00:00
15 lines
342 B
TypeScript
15 lines
342 B
TypeScript
![]() |
import { Timestamp } from '@hcengineering/core'
|
||
|
|
||
|
export function saveUTC (date: Timestamp): Timestamp {
|
||
|
const utcdate = new Date(date)
|
||
|
return Date.UTC(
|
||
|
utcdate.getFullYear(),
|
||
|
utcdate.getMonth(),
|
||
|
utcdate.getDate(),
|
||
|
utcdate.getHours(),
|
||
|
utcdate.getMinutes(),
|
||
|
utcdate.getSeconds(),
|
||
|
utcdate.getMilliseconds()
|
||
|
)
|
||
|
}
|