mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 06:55:58 +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());
|
setLocalStorageKey('endTime', endTimeMoment.toString());
|
||||||
updateLocalStorageForRoutes('custom');
|
updateLocalStorageForRoutes('custom');
|
||||||
if (!isLogsExplorerPage) {
|
if (!isLogsExplorerPage) {
|
||||||
urlQuery.set(QueryParams.startTime, startTimeMoment.toString());
|
urlQuery.set(
|
||||||
urlQuery.set(QueryParams.endTime, endTimeMoment.toString());
|
QueryParams.startTime,
|
||||||
|
startTimeMoment?.toDate().getTime().toString(),
|
||||||
|
);
|
||||||
|
urlQuery.set(
|
||||||
|
QueryParams.endTime,
|
||||||
|
endTimeMoment?.toDate().getTime().toString(),
|
||||||
|
);
|
||||||
const generatedUrl = `${location.pathname}?${urlQuery.toString()}`;
|
const generatedUrl = `${location.pathname}?${urlQuery.toString()}`;
|
||||||
history.replace(generatedUrl);
|
history.replace(generatedUrl);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user