Skip to content

Commit 826d03d

Browse files
committed
fix: Use timestampWithMs
1 parent ca418f0 commit 826d03d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DsnLike } from '@sentry/types';
2-
import { urlEncode } from '@sentry/utils';
2+
import { timestampWithMs, urlEncode } from '@sentry/utils';
33

44
import { Dsn } from './dsn';
55

@@ -54,7 +54,7 @@ export class API {
5454
public getRequestHeaders(clientName: string, clientVersion: string): { [key: string]: string } {
5555
const dsn = this._dsnObject;
5656
const header = [`Sentry sentry_version=${SENTRY_API_VERSION}`];
57-
header.push(`sentry_timestamp=${new Date().getTime()}`);
57+
header.push(`sentry_timestamp=${timestampWithMs()}`);
5858
header.push(`sentry_client=${clientName}/${clientVersion}`);
5959
header.push(`sentry_key=${dsn.user}`);
6060
if (dsn.pass) {

0 commit comments

Comments
 (0)