mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 04:39:06 +08:00
fix: update correct format in URL in case of custom date time (#4371)
This commit is contained in:
parent
c28f367f46
commit
cbf150ef7b
@ -223,8 +223,14 @@ function DateTimeSelection({
|
||||
setLocalStorageKey('endTime', endTimeMoment.toString());
|
||||
updateLocalStorageForRoutes('custom');
|
||||
if (!isLogsExplorerPage) {
|
||||
urlQuery.set(QueryParams.startTime, startTimeMoment.toString());
|
||||
urlQuery.set(QueryParams.endTime, endTimeMoment.toString());
|
||||
urlQuery.set(
|
||||
QueryParams.startTime,
|
||||
startTimeMoment?.toDate().getTime().toString(),
|
||||
);
|
||||
urlQuery.set(
|
||||
QueryParams.endTime,
|
||||
endTimeMoment?.toDate().getTime().toString(),
|
||||
);
|
||||
const generatedUrl = `${location.pathname}?${urlQuery.toString()}`;
|
||||
history.replace(generatedUrl);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user