mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-27 11:06:50 +03:00
ecce199b4e
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
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()
|
|
)
|
|
}
|