⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
fix: Make timezone configurable via TIME_ZONE env var
Daniel Miessler371f8128b406
diff --git a/.claude/hooks/capture-all-events.ts b/.claude/hooks/capture-all-events.tsindex f93d4d33..11b9dba8 100755--- a/.claude/hooks/capture-all-events.ts+++ b/.claude/hooks/capture-all-events.ts@@ -23,7 +23,7 @@ interface HookEvent {// Get PST timestampfunction getPSTTimestamp(): string {const date = new Date();- const pstDate = new Date(date.toLocaleString('en-US', { timeZone: 'America/Los_Angeles' }));+ const pstDate = new Date(date.toLocaleString('en-US', { timeZone: process.env.TIME_ZONE || 'America/Los_Angeles' }));const year = pstDate.getFullYear();const month = String(pstDate.getMonth() + 1).padStart(2, '0');@@ -38,7 +38,7 @@ function getPSTTimestamp(): string {// Get current events file pathfunction getEventsFilePath(): string {const now = new Date();- const pstDate = new Date(now.toLocaleString('en-US', { timeZone: 'America/Los_Angeles' }));+ const pstDate = new Date(now.toLocaleString('en-US', { timeZone: process.env.TIME_ZONE || 'America/Los_Angeles' }));const year = pstDate.getFullYear();const month = String(pstDate.getMonth() + 1).padStart(2, '0');const day = String(pstDate.getDate()).padStart(2, '0');diff --git a/.claude/hooks/lib/pai-paths.ts b/.claude/hooks/lib/pai-paths.tsindex 878a46f9..ab9ae9ed 100644--- a/.claude/hooks/lib/pai-paths.ts+++ b/.claude/hooks/lib/pai-paths.ts@@ -59,7 +59,7 @@ validatePAIStructure();*/export function getHistoryFilePath(subdir: string, filename: string): string {const now = new Date();- const pstDate = new Date(now.toLocaleString('en-US', { timeZone: 'America/Los_Angeles' }));+ const pstDate = new Date(now.toLocaleString('en-US', { timeZone: process.env.TIME_ZONE || 'America/Los_Angeles' }));const year = pstDate.getFullYear();const month = String(pstDate.getMonth() + 1).padStart(2, '0');diff --git a/.claude/hooks/load-core-context.ts b/.claude/hooks/load-core-context.tsindex 685aaa8b..72171290 100755--- a/.claude/hooks/load-core-context.ts+++ b/.claude/hooks/load-core-context.ts@@ -76,7 +76,7 @@ async function main() {const message = `<system-reminder>PAI CORE CONTEXT (Auto-loaded at Session Start)-📅 CURRENT DATE/TIME: ${new Date().toLocaleString('en-US', { timeZone: 'America/Los_Angeles', year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false })} PST+📅 CURRENT DATE/TIME: ${new Date().toLocaleString('en-US', { timeZone: process.env.TIME_ZONE || 'America/Los_Angeles', year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false, timeZoneName: 'short' })}The following context has been loaded from ${coreSkillPath}: