Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: time zone prompt eng., toaster issue, curl generation issue

Louis Beaumont6debe5047fa3
diff --git a/examples/apps/screenpipe-app-tauri/app/layout.tsx b/examples/apps/screenpipe-app-tauri/app/layout.tsx
index e8f6e34fc..2ed22d68d 100644
--- a/examples/apps/screenpipe-app-tauri/app/layout.tsx
+++ b/examples/apps/screenpipe-app-tauri/app/layout.tsx
@@ -21,8 +21,11 @@ export default function RootLayout({
<html lang="en">
<PHProvider>
{/* https://posthog.com/docs/libraries/next-js for more info */}
- <body className={inter.className}>{children}</body>
- <Toaster />
+ <body className={inter.className}>
+ {children}
+
+ <Toaster />
+ </body>
</PHProvider>
</html>
);
diff --git a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx
index e7abd65dd..21e4976f0 100644
--- a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx
@@ -150,6 +150,11 @@ export function ChatList({
- Convert user times to UTC. User timezone: ${
Intl.DateTimeFormat().resolvedOptions().timeZone
}
+ - To convert to UTC: ${
+ new Date().getTimezoneOffset() / -60 > 0 ? "subtract" : "add"
+ } ${Math.abs(
+ new Date().getTimezoneOffset() / 60
+ )} hours from the user's local time.
- MAKE SURE TO ADAPT THE TIME RANGE PROPS TO THE USER'S INTENT
- Also make sure to follow the user's custom system prompt: "${customPrompt}"
diff --git a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
index 208b29449..d19e0a46f 100644
--- a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
@@ -239,7 +239,7 @@ function MarkdownContent({ content }: { content: string }) {
function generateCurlCommand(query: any): string {
const baseUrl = "http://localhost:3030";
const queryParams = new URLSearchParams({
- content_type: query.contentType || "all",
+ content_type: query.content_type || "all",
limit: query.limit?.toString() || "10",
offset: query.offset?.toString() || "0",
start_time: query.start_time || "",