-
Notifications
You must be signed in to change notification settings - Fork 47
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
Yet more Date bugs... #133
Comments
The current implementation adds the number of days supplied to the current value, while it should be adding those days-1 to the first day of the month of the current value. Also, all of these functions should return the valueOf(), not the new month/date number. All of this was working on the Date() version I sent you. I don't understand this obsession with reworking the javascript date handling into ticks and manually handling leap years etc. |
It's all fixed and working on my |
I've released a working version as a NuGet package for now, as we need it for our external build server. There were a number of other issues too related to whether UTC is assumed for different constructor types, and I added the |
This bug caused by one misprint in line 212. |
The only tests that fail in my implementation are those involving things like |
…ate `Sat Sep 13 275760 00:00:00 GMT+1000 (Local Standard Time)` (WTF?) pass. Incorporated Fix nilproject#133 too
OK, it turns out there are loads of faults and some really weird requirements for some of the features such as addMonths(). I've added to my project a program that tests every function on a Bear in mind that you can't test the DST functionality because the Chromium interpreter used in the V8 library has a bug that gets the times wrong in some regions, so we have to stick to the |
The only test I missed (so far) was |
We need these Date bugs fixing in the core.
|
Thanks! I fix it shortly. |
Still problems with the constructor:
|
@nilproject Itegration Date Tests failing on windows: see |
Should be
The text was updated successfully, but these errors were encountered: