Comments (6)
Let me know if you need me to push a version to NPM.
from timezone-js.
Yup I think everything's clear. The failing unit test was a coincidence since the test use my local timezone :) Thanks for the catch. I think using a CI will avoid this kind of situation.
Feel free to push 0.4.2 to npm. :)
from timezone-js.
Actually 0.4.3, pushed. :) Ah, it's a dot-file. I didn't notice the leading dot, so I wasn't seeing the file. Nice work getting it hooked up to CI.
And yes, I can remember tripping over the coincidental local-timezone-match problem before. Would be awesome if we could somehow add an explicit test for that scenario.
from timezone-js.
For the Travis CI support actually only the admin can do it so you probably will have go to travis-ci.org and flip the switch.
For the timezone match issue I can probably specify each test to run through a list of certain timezones over the world. What do you think?
from timezone-js.
Had to make some tweaks so CI would run. Looks like we're green!
The accidental-match problem happens when the OS timezone happens to match the expected result in the test, right? Maybe a conditional assert that checks for either a match if the offset happens to be the same, or a thrown error if it's not?
from timezone-js.
Hmm that and also the case when developers make test cases that use the OS timezones. It my bad on my part that I used America/New_York
for the failing test and didn't realize until I switched to America/Los_Angeles
or Asia/Bangkok
. Prob I should note down to explicitly test some timezones other than my local one?
from timezone-js.
Related Issues (20)
- setTime unable to progress over DST start (NZST to NZDT) HOT 1
- Invalid region for some timezones HOT 4
- Browserify require timezone-js raise uncaught error HOT 4
- getTimezoneOffset() does not work with DST HOT 2
- Does not work with UTC reliably around DST changes in local timezone HOT 3
- date.setMonth() on a date outputs wrong month HOT 5
- Error: Timezone 'Europe/Copenhagen' is either incorrect, or not loaded in the timezone registry. HOT 1
- Timezone incorrect or not loaded in the timezone registry HOT 1
- incorrect timezone abbreviations HOT 2
- DST problem after upgrading HOT 1
- toISOString returns incorrect value near (but not during) DST change HOT 1
- Incorrect time transition moment HOT 1
- timezoneJS constructor returns wrong offset and timezone HOT 1
- tzdata now available as NPM modules HOT 3
- invalid date HOT 1
- missing timezone names HOT 1
- Error while setting up with Olson files (missing file) HOT 1
- Failure for years < 100 AD HOT 3
- Wrong date conversion for certain years in daylight saving time HOT 1
- Wrong Date conversion for the years below 1947 in Kuwait Timezone(UTC+3). HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timezone-js.