Skip to content

Automate browser based workflows with AI

docs(datadog): record P0 legacy workflow-run canary fix on monitor 19652478 (SKY-9558) (#8379)

Aaron Perezf97702d96f04
diff --git a/skyvern-frontend/src/util/timeFormat.test.ts b/skyvern-frontend/src/util/timeFormat.test.ts
index e36c90aed..f4e88c6c7 100644
--- a/skyvern-frontend/src/util/timeFormat.test.ts
+++ b/skyvern-frontend/src/util/timeFormat.test.ts
@@ -137,4 +137,20 @@ describe("basicTimeFormat", () => {
const result = basicTimeFormat("2026-03-04T18:30:00Z");
expect(result).toContain(" at ");
});
+
+ test("renders the timestamp in UTC, not the viewer's local time", () => {
+ // The tooltip is labeled "UTC", so it must show the UTC time regardless of
+ // the machine's time zone. For an input carrying a Z the rendered time must
+ // equal the UTC time (18:30), never a local-zone conversion of it.
+ const result = basicTimeFormat("2026-03-04T18:30:00Z");
+ expect(result).toBe("Wed, Mar 4, 2026 at 6:30:00 PM UTC");
+ });
+
+ test("treats a no-suffix timestamp as UTC before rendering", () => {
+ // Backend returns naive UTC timestamps without 'Z'. normalizeUtcTimestamp
+ // must run first so the tooltip matches the Z-suffixed instant.
+ const withoutZ = "2026-03-04T18:30:00.000000";
+ const withZ = "2026-03-04T18:30:00.000000Z";
+ expect(basicTimeFormat(withoutZ)).toBe(basicTimeFormat(withZ));
+ });
});
diff --git a/skyvern-frontend/src/util/timeFormat.ts b/skyvern-frontend/src/util/timeFormat.ts
index 0484d9211..11aba701b 100644
--- a/skyvern-frontend/src/util/timeFormat.ts
+++ b/skyvern-frontend/src/util/timeFormat.ts
@@ -64,14 +64,22 @@ function compactLocalDateTime(time: string): string {
}
function basicTimeFormat(time: string): string {
+ time = normalizeUtcTimestamp(time);
+
const date = new Date(time);
+
+ // Render in UTC to match the "UTC" label; this is the hover companion to
+ // basicLocalTimeFormat, which shows the same instant in the local time zone.
const dateString = date.toLocaleDateString("en-US", {
weekday: "short",
year: "numeric",
month: "short",
day: "numeric",
+ timeZone: "UTC",
+ });
+ const timeString = date.toLocaleTimeString("en-US", {
+ timeZone: "UTC",
});
- const timeString = date.toLocaleTimeString("en-US");
return `${dateString} at ${timeString} UTC`;
}
diff --git a/skyvern/forge/sdk/api/aws.py b/skyvern/forge/sdk/api/aws.py
index 56bd409a1..b78eff42a 100644
--- a/skyvern/forge/sdk/api/aws.py
+++ b/skyvern/forge/sdk/api/aws.py
@@ -482,7 +482,6 @@ class AsyncAWSClient:
Args:
uri: The S3 URI of the file
- client: Optional S3 client to use
log_exception: Whether to log exceptions
Returns: