Skip to content

[Bug]: OpenClaw logs ignore TZ environment variable, always show UTC time on Windows #21606

@WenLiang619

Description

@WenLiang619

Summary

Even after setting TZ=Asia/Shanghai environment variable and upgrading to latest version (2026.2.19), OpenClaw logs still display UTC time instead of local time.

Steps to reproduce

  1. Set environment variable: TZ=Asia/Shanghai
  2. Start OpenClaw: openclaw gateway start
  3. Check logs: openclaw logs
  4. Observe time is in UTC (e.g., shows 04:18 when local time is 12:18)

Expected behavior

Logs should display local time according to TZ environment variable.

Actual behavior

Logs always show UTC time regardless of TZ setting.

OpenClaw version

2026.2.19

Operating system

Win11

Install method

npm install -g openclaw@latest

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

  • C:\Users\86137>node -v
    v24.13.0
  • Timezone: Asia/Shanghai (GMT+8)
  • Tried both system environment variable and set TZ=Asia/Shanghai before command
  • Issue persists after upgrade from 2026.2.9 to 2026.2.19
  • Discord and other functions work fine, only time display is affected

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions