Skip to content

Tests fail on machine in CET timezone #4411

Closed
@maciej-ka

Description

@maciej-ka

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions