# How to Test Your Code Across Time Zones and Dates With Jetlag

DevFeed: [How to Test Your Code Across Time Zones and Dates With Jetlag](<https://devfeed.tech/articles/how-to-test-your-code-across-time-zones-and-dates-with-jetlag-102334.md>)

Original publisher: [Read original article](<https://hackernoon.com/how-to-test-your-code-across-time-zones-and-dates-with-jetlag?source=rss>)

Author: Om Shankar

Published: 2026-10-27T13:11:24Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [arabic](<https://devfeed.tech/tags/arabic.md>), [automated-software-testing](<https://devfeed.tech/tags/automated-software-testing.md>), [billing](<https://devfeed.tech/tags/billing.md>), [bug](<https://devfeed.tech/tags/bug.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [calendar](<https://devfeed.tech/tags/calendar.md>), [california](<https://devfeed.tech/tags/california.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cli](<https://devfeed.tech/tags/cli.md>), [clock](<https://devfeed.tech/tags/clock.md>), [code](<https://devfeed.tech/tags/code.md>), [command](<https://devfeed.tech/tags/command.md>), [date-and-time-bugs](<https://devfeed.tech/tags/date-and-time-bugs.md>), [debug](<https://devfeed.tech/tags/debug.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [github-actions-testing](<https://devfeed.tech/tags/github-actions-testing.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript-date-testing](<https://devfeed.tech/tags/javascript-date-testing.md>), [jetlag](<https://devfeed.tech/tags/jetlag.md>), [jetlagged-npm](<https://devfeed.tech/tags/jetlagged-npm.md>), [node-js-testing](<https://devfeed.tech/tags/node-js-testing.md>), [python-datetime-testing](<https://devfeed.tech/tags/python-datetime-testing.md>), [saving](<https://devfeed.tech/tags/saving.md>), [test](<https://devfeed.tech/tags/test.md>), [tests](<https://devfeed.tech/tags/tests.md>), [time](<https://devfeed.tech/tags/time.md>), [zero](<https://devfeed.tech/tags/zero.md>)

## AI overview

Jetlag reruns an existing test command under changed time zones, selected edge-case dates, and locales to expose date and formatting bugs. It first runs tests in the current environment, then reports only new destination failures with reproduction commands; failures are rerun alone to flag cases that appear flaky. It sets TZ, LANG, and LC_ALL, and shifts time through runtime preloads for Node.js, Python, and Ruby, coordinating the shifted clock across processes. Supported date shifting is unavailable for Go, Rust, Java, and .NET, so those date checks are skipped; time zone and locale changes still apply. It requires Node.js 20 or later and has not been tested on Windows. On Linux, Python and Ruby locale tests require system locales to be installed.

## Source excerpt

A zero-dependency CLI that reruns your tests in other time zones, on daylight saving, and leap days, and in other locales, then says what broke and why.