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: use UTC for all PM2 log timestamps and Date operations

Adam Eivy0dd2c1faa967
diff --git a/.changelog/v0.25.x.md b/.changelog/v0.25.x.md
index 1afbcb51e5..74c43379cf 100644
--- a/.changelog/v0.25.x.md
+++ b/.changelog/v0.25.x.md
@@ -25,8 +25,10 @@ Peer apps display and remote agent streaming on the Instances page — see what'
- **Expanded `dequeueNextTask()`** — now fills all available slots with full priority ordering (on-demand → user → system → mission → idle), not just one task at a time
- **Dynamic job schedule updates** — creating, updating, toggling, or deleting an autonomous job immediately re-registers/cancels its timer via `jobs:*` event listeners
-### ISO timestamps in PM2 logs
-- PM2 log lines now include full ISO 8601 timestamps (`YYYY-MM-DDTHH:mm:ss.SSSZ`) instead of time-only (`HH:mm:ss`), making cross-day and cross-timezone log correlation straightforward
+### UTC log timestamps in PM2
+- All PM2 processes now run with `TZ=UTC` so log timestamps and Date operations are consistently UTC
+- `BASE_ENV` shared across all apps eliminates repeated `NODE_ENV` and centralizes `TZ`
+- Log format uses literal `[Z]` suffix (proper UTC indicator) instead of timezone offset
### Dual Provider + Model picker in Prompt Manager
- Stage model selection now offers two modes: **Tier** (Default/Quick/Coding/Heavy, resolves at runtime via active provider) or **Specific** (pick an explicit provider + model combination)
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
index 610a59f440..48fbe3838e 100644
--- a/ecosystem.config.cjs
+++ b/ecosystem.config.cjs
@@ -1,7 +1,13 @@
// =============================================================================
// PM2 Ecosystem Configuration - shared constants and app definitions
// =============================================================================
-const LOG_DATE_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSSZ';
+const LOG_DATE_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS[Z]';
+
+// Shared env inherited by all apps (merged into each app's env)
+const BASE_ENV = {
+ NODE_ENV: 'development',
+ TZ: 'UTC' // All log timestamps and Date operations in UTC
+};
const PORTS = {
API: 5554, // Express API server
@@ -24,7 +30,7 @@ module.exports = {
interpreter: 'node',
log_date_format: LOG_DATE_FORMAT,
env: {
- NODE_ENV: 'development',
+ ...BASE_ENV,
PORT: PORTS.API,
HOST: '0.0.0.0'
},
@@ -41,7 +47,7 @@ module.exports = {
// Does NOT restart when portos-server restarts, preventing orphaned agents
// Security: Binds to localhost only - not exposed externally
env: {
- NODE_ENV: 'development',
+ ...BASE_ENV,
PORT: PORTS.COS,
HOST: '127.0.0.1'
},
@@ -62,7 +68,7 @@ module.exports = {
log_date_format: LOG_DATE_FORMAT,
args: `--host 0.0.0.0 --port ${PORTS.UI}`,
env: {
- NODE_ENV: 'development',
+ ...BASE_ENV,
VITE_PORT: PORTS.UI
},
watch: false
@@ -74,7 +80,7 @@ module.exports = {
interpreter: 'node',
log_date_format: LOG_DATE_FORMAT,
env: {
- NODE_ENV: 'development',
+ ...BASE_ENV,
PORT: PORTS.AUTOFIXER,
PATH: process.env.PATH // Inherit PATH for nvm/node access in child processes
},
@@ -91,7 +97,7 @@ module.exports = {
interpreter: 'node',
log_date_format: LOG_DATE_FORMAT,
env: {
- NODE_ENV: 'development',
+ ...BASE_ENV,
PORT: PORTS.AUTOFIXER_UI
},
watch: false,
@@ -109,7 +115,7 @@ module.exports = {
// Security: CDP binds to 127.0.0.1 by default (set CDP_HOST=0.0.0.0 to expose)
// Remote access should go through portos-server proxy with authentication
env: {
- NODE_ENV: 'development',
+ ...BASE_ENV,
CDP_PORT: PORTS.CDP,
CDP_HOST: '127.0.0.1',
PORT: PORTS.CDP_HEALTH
diff --git a/package-lock.json b/package-lock.json
index 075f70dbea..c6c0992672 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "portos",
- "version": "0.25.6",
+ "version": "0.25.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "portos",
- "version": "0.25.6",
+ "version": "0.25.7",
"license": "MIT",
"workspaces": [
"packages/*",
diff --git a/package.json b/package.json
index 95d99ff2c6..ca582c2c70 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "portos",
- "version": "0.25.6",
+ "version": "0.25.7",
"private": true,
"description": "Local dev machine App OS portal",
"author": "Adam Eivy (@antic|@atomantic)",