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

format timestamps

Ezra Ellette0fdc5614d339
diff --git a/screenpipe-app-tauri/components/meeting-history.tsx b/screenpipe-app-tauri/components/meeting-history.tsx
index 8fe703823..b41c8bbc1 100644
--- a/screenpipe-app-tauri/components/meeting-history.tsx
+++ b/screenpipe-app-tauri/components/meeting-history.tsx
@@ -432,6 +432,19 @@ export default function MeetingHistory() {
}
}
+ function formatTimestamp(timestamp: string): string {
+ const date = new Date(timestamp);
+ return new Intl.DateTimeFormat("en-US", {
+ year: "numeric",
+ month: "short",
+ day: "2-digit",
+ hour: "2-digit",
+ minute: "2-digit",
+ second: "2-digit",
+ timeZoneName: "short",
+ }).format(date);
+ }
+
function processMeetings(transcriptions: AudioTranscription[]): Meeting[] {
console.log("processing transcriptions:", transcriptions);
let meetings: Meeting[] = [];
@@ -465,7 +478,7 @@ export default function MeetingHistory() {
meetingGroup: meetingGroup,
meetingStart: trans.content.timestamp,
meetingEnd: trans.content.timestamp,
- fullTranscription: `${trans.content.timestamp} [${
+ fullTranscription: `${formatTimestamp(trans.content.timestamp)} [${
trans.content.deviceType?.toLowerCase() === "input"
? "you"
: trans.content.deviceType?.toLowerCase() === "output"
@@ -893,7 +906,7 @@ export default function MeetingHistory() {
meeting.selectedDevices.has(s.deviceName)
)
.map((s) => {
- return `${s.timestamp} [${
+ return `${formatTimestamp(s.timestamp)} [${
s.deviceType?.toLowerCase() === "input"
? "you"
: "others"
@@ -917,7 +930,7 @@ export default function MeetingHistory() {
.map((s, i) => (
<React.Fragment key={i}>
<span className="font-bold">
- {`${s.timestamp} [${
+ {`${formatTimestamp(s.timestamp)} [${
s.deviceType?.toLowerCase() === "input"
? "you"
: "others"