Skip to content

bmaupin/jest-timezone-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jest does not seem to properly handle process.env.TZ: Setting process.env.TZ does not affect Dates

To reproduce:

  1. Install dependencies

    npm ci
    
  2. Run the tests; this demonstrates the bug

    npm test
    
  3. Run the tests with TZ=UTC; the TZ=EST test will fail

    TZ=UTC npm test
    
  4. Run the tests with TZ=EST; the TZ=UTC test will fail

    TZ=EST npm test
    

Workarounds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published