Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

fix: updated request time to timezone specific (#412)

Aman Agarwal4ad582b94ead
diff --git a/src/client/src/components/(playground)/request/request-details.tsx b/src/client/src/components/(playground)/request/request-details.tsx
index af7f034d..20436d9a 100644
--- a/src/client/src/components/(playground)/request/request-details.tsx
+++ b/src/client/src/components/(playground)/request/request-details.tsx
@@ -61,6 +61,8 @@ export default function RequestDetails() {
isException
);
+ const date = new Date(`${normalizedItem.time}Z`);
+
return (
<Sheet open onOpenChange={onClose}>
<SheetContent className="max-w-none sm:max-w-none w-1/2 bg-stone-200 dark:bg-stone-200">
@@ -94,7 +96,7 @@ export default function RequestDetails() {
<TagItem
icon={CalendarDays}
title="Request Time : "
- value={format(normalizedItem.time, "MMM do, y HH:mm:ss a")}
+ value={format(date, "MMM do, y HH:mm:ss a")}
/>
<TagItem
icon={Clock}
diff --git a/src/client/src/components/(playground)/request/trace.tsx b/src/client/src/components/(playground)/request/trace.tsx
index 64ee7e2b..939f7f8e 100644
--- a/src/client/src/components/(playground)/request/trace.tsx
+++ b/src/client/src/components/(playground)/request/trace.tsx
@@ -67,7 +67,7 @@ export default function Trace({ item, isLoading }: RenderRowProps) {
? getDisplayKeysForException()
: getRequestTableDisplayKeys(normalizedItem.type);
- console.log(normalizedItem, item);
+ const date = new Date(`${normalizedItem.time}Z`);
return (
<div className="flex flex-col">
@@ -76,7 +76,7 @@ export default function Trace({ item, isLoading }: RenderRowProps) {
<div className="flex items-center pr-3">
<CalendarDays size="16" />
<p className="text-xs leading-none ml-2">
- {format(normalizedItem.time, "MMM do, y HH:mm:ss a")}
+ {format(date, "MMM do, y HH:mm:ss a")}
</p>
</div>
<div className="flex items-center pl-3 border-l border-stone-200">