Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(git): use strict ISO 8601 date format for commit logs

Adam Eivyf9bc9d04ea43
diff --git a/.changelog/v0.14.x.md b/.changelog/v0.14.x.md
index 0bcc326b09..9b75e1dc85 100644
--- a/.changelog/v0.14.x.md
+++ b/.changelog/v0.14.x.md
@@ -47,3 +47,4 @@ This release adds Ghostty terminal theme integration and a project update workfl
- **Disabled GLSL custom shaders** — fragment shaders (bloom, nebula, rain, etc.) ran per-pixel every frame causing GPU-bound lag on terminal output; themes now use color palettes only
- **Silenced Ghostty `SEL:` debug spam** — macOS Cocoa input selector messages (`SEL: insertNewline:`, `SEL: insertTab:`, etc.) leaked to the parent terminal when `proj` launched Ghostty as a background process; redirected stdout/stderr to `/dev/null`
+- **Fixed "Invalid Date" on git status page** — git commit dates used `%ci` format (space-separated timezone) which some JS engines reject; switched to `%cI` for strict ISO 8601 output
diff --git a/server/services/git.js b/server/services/git.js
index aba9d2b581..80c439f526 100644
--- a/server/services/git.js
+++ b/server/services/git.js
@@ -101,7 +101,7 @@ export async function getBranch(dir) {
export async function getCommits(dir, limit = 10) {
// Validate limit is a positive integer to prevent injection
const safeLimit = Math.max(1, Math.min(100, parseInt(limit, 10) || 10));
- const format = '--format={"hash":"%h","message":"%s","author":"%an","date":"%ci"}';
+ const format = '--format={"hash":"%h","message":"%s","author":"%an","date":"%cI"}';
const result = await execGit(['log', format, '-n', String(safeLimit)], dir);
const commits = result.stdout.trim().split('\n').filter(Boolean).map(line => {
@@ -271,7 +271,7 @@ export async function updateBranches(dir) {
* Get branch comparison (how far ahead headBranch is from baseBranch)
*/
export async function getBranchComparison(dir, baseBranch = 'main', headBranch = 'dev') {
- const format = '--format={"hash":"%h","message":"%s","author":"%an","date":"%ci"}';
+ const format = '--format={"hash":"%h","message":"%s","author":"%an","date":"%cI"}';
const logResult = await execGit(
['log', format, `${baseBranch}..${headBranch}`], dir, { ignoreExitCode: true }
);