Closed BlazeCell closed 11 years ago
Update: Upon further fiddling with this change, I've found additional pieces that weren't behaving as expected. More changes will need to be made for this to work properly.
This issue is from a while ago, sorry about that. I looked into your issue, and everything's working fine on my end. The test added in this commit is passing: 919d3a9e872a301c9db156995da506277a698377
Is is possible you were misinterpreting your debug output?
When I use the code below:
I get an output of:
which is what I expect.
However, when I alter the code to:
I get an output of:
Which not what I'm expecting. I expect that if I'm creating a date in UTC mode, that whatever value I use to create my date will be used to create the date in UTC mode; not create the date and then convert that date to UTC mode.
I found the problem code at line 119 inside xdate.dev.js. I changed the line from:
to
and now I get the expected behavior.
So now, with the change, the following code:
results in an output of:
If you need me to, I'll make a pull request, but I figured it was a pretty minor change so I'm just posting it here for now.