Skip to content

About

Codex skill to set a default local timezone in the Codex CLI launcher, with restore support after updates.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex Local Timezone Skill

Version: 1.0.1

Tested with: codex-cli 0.139.0

License: MIT

This repository publishes the codex-local-timezone skill for Codex. Its primary purpose is to set a default local timezone for the Codex CLI by patching the installed launcher. It can also restore that setting after a codex update or reinstall removes the patch, or change the timezone later.

The skill works by patching the installed codex.js launcher so the native Codex process starts with a default TZ value such as Asia/Kolkata, America/New_York, or any other valid IANA timezone.

OS Support

  • Linux: supported
  • macOS: supported
  • Windows: not currently supported or verified

Why Windows is different:

  • This skill sets TZ using IANA timezone names such as Asia/Kolkata.
  • That pattern is standard on Unix-like systems.
  • Windows documents different TZ semantics in its C runtime, and the native Windows Codex build has not been verified with this approach.
  • Treat v1.0.1 as Linux/macOS-focused.

Repository Layout

  • codex-local-timezone/SKILL.md The skill instructions Codex reads.
  • codex-local-timezone/agents/openai.yaml UI metadata for the skill.
  • codex-local-timezone/scripts/patch_codex_launcher_timezone.py The helper script that detects and patches the installed Codex launcher.
  • VERSION Repository release version.

Install

Clone the repository and copy the skill into your Codex skills directory:

git clone https://github.com/VectorSigmaOmega/codex-local-timezone-skill.git
mkdir -p ~/.codex/skills
cp -R codex-local-timezone-skill/codex-local-timezone ~/.codex/skills/

After that, Codex can use the skill by name.

Use the Skill

Ask Codex to use the skill:

Use $codex-local-timezone to set Codex to Asia/Kolkata.

Or run the script directly:

python3 ~/.codex/skills/codex-local-timezone/scripts/patch_codex_launcher_timezone.py --timezone Asia/Kolkata

Use another timezone when needed:

python3 ~/.codex/skills/codex-local-timezone/scripts/patch_codex_launcher_timezone.py --timezone America/New_York
python3 ~/.codex/skills/codex-local-timezone/scripts/patch_codex_launcher_timezone.py --timezone Europe/Berlin

If an update removes the patch, rerun the same command to restore it.

Verify

The script patches the installed launcher so it contains a line like:

TZ: process.env.TZ || "Asia/Kolkata",

Then reopen Codex and check /status, or run a light smoke check such as:

codex --version
codex --help

Notes

  • The script creates timestamped backups under ~/.codex/skill-state/codex-local-timezone/backups/ by default.
  • The patch is idempotent. Running it again updates the managed timezone line instead of stacking duplicate changes.
  • A future Codex update may overwrite the launcher file. If that happens, rerun the skill or the script.
  • This is a launcher patch, not a documented ~/.codex/config.toml setting.

About

Codex skill to set a default local timezone in the Codex CLI launcher, with restore support after updates.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages