mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-17 01:31:27 +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;
|
|
};
|