mde / timezone-js

DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.
824 stars 183 forks source link

Multiple spec failures in NZDT #127

Closed radhikalism closed 4 years ago

radhikalism commented 10 years ago

Running jake test:init && jake test with TZ=Pacific/Auckland (i.e. NZDT) at commit 7d351e5 (or any recent version):

Failures:

  1) timezoneJS.Date should format the Unix Epoch UTC to different formats and tz correctly

   Message:
     Expected 'Jan 01 1970 05:00:00 AM MSK' to equal 'Jan 01 1970 03:00:00 AM MSK'.

  2) timezoneJS.Date should take in millis as constructor
   Message:
     Expected '1970-01-01T01:00:00.000Z' to equal '1970-01-01T00:00:00.000Z'.

  3) timezoneJS.Date should take in Date object as constructor

   Message:
     Expected '1970-01-01T01:00:00.000Z' to equal '1970-01-01T00:00:00.000Z'.

  4) timezoneJS.Date should take in millis and tz as constructor
   Message:
     Expected 3600000 to equal 0.

  5) timezoneJS.Date should take in Date object as constructor
   Message:
     Expected 3600000 to equal 0.

  6) timezoneJS.Date should be able to clone itself
   Message:
     Expected 3600000 to equal 7200000.

  7) timezoneJS.Date should be able to clone itself
   Message:

     Expected '1969-12-31 19:00:00' to equal '1969-12-31 20:00:00'.

Finished in 3.061 seconds

92 tests, 306 assertions, 7 failures

Are these known bugs covered in other issues?

mde commented 10 years ago

No, these are not known bugs.