mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-13 17:51:33 +08:00
5 lines
130 B
TypeScript
5 lines
130 B
TypeScript
export const toUTCEpoch = (time: number): number => {
|
|
const x = new Date();
|
|
return time + x.getTimezoneOffset() * 60 * 1000;
|
|
};
|