Skip to content

For contributing developers, local tests need to be run with TZ=UTC #11246

@douglascayers

Description

@douglascayers

What was unclear or otherwise insufficient?

I'm a first-time contributor to TypeORM, and when I tried npm run test for the first time then the test case issue-9230 failed due to date formatting.

Image

After some troubleshooting, I realized that using TZ=UTC allowed the test to pass.

Recommended Fix

Update the DEVELOPER.md instructions for running tests to let users know they may need to adjust the timezone used by the tests by setting a temporary environment variable.

Additional Context

No response

Are you willing to resolve this issue by submitting a Pull Request?

Yes, I have the time, and I know how to start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions