Skip to content

Tests fail on machine in CET timezone #4411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
maciej-ka opened this issue Dec 2, 2017 · 0 comments · Fixed by #4412
Closed

Tests fail on machine in CET timezone #4411

maciej-ka opened this issue Dec 2, 2017 · 0 comments · Fixed by #4412

Comments

@maciej-ka
Copy link
Contributor

Issue Description

Two tests are failing because of timezone differences.

Steps to reproduce

  1. Use a computer that has non zero timezone difference
  2. npm test

Expected Results

All green

Actual Outcome

Two errors:
screen shot 2017-12-02 at 02 29 27

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.): 2.7.1
    • Operating System: OSX 10.11.2
    • Hardware: Macbook Pro
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Localhost
  • Database
    Not relevant, this is just date

Logs/Trace

    formatPushTime
      ✗ should format as ISO string
        - Expected '2017-09-06T15:14:01.048' to be '2017-09-06T17:14:01.048', 'No timezone'.

    Scheduling pushes in local time
      ✗ should preserve the push time
        - Expected '2017-09-06T15:14:01.048' to be '2017-09-06T17:14:01.048'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant