-
Notifications
You must be signed in to change notification settings - Fork 357
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
String var containing time, not displayed correctly. #106
Comments
Please correct me that this is should be done following way:
|
Looks like I have test for that. |
Not so simple as it seems from the first sight.
and there no way to recover that information.
|
@mousetraps could you take a look? |
Seems like that DateParse enumeration should be 'None' for the value field if you don't want it converted. See http://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_DateParseHandling.htm |
I will try that. Thanks. Exactly what I was looking for. Will comeback when test that. |
Addresses microsoft#106. Json.net will automatically try to parse strings that look like date strings. If one of these is recieved as the value in a Node debug message, we end up displaying the wrong value in the debugger. Fix, make sure we always use DateTimeParse.None when dealing with messages from the debugger. If we do need to parse a date string, we should handle those cases explicitly. closes microsoft#106
Variable time from following sample is in watch window displayed as: "05/07/2015 22:00:00", but of course logged to console correctly as "2015-05-07T22:00:00.000Z".
var time= "2015-05-07T22:00:00.000Z";
console.log(time);
The text was updated successfully, but these errors were encountered: