Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Created Unassigned: Debugger Date String Oddities [1483]

$
0
0
See https://nodejstools.codeplex.com/discussions/560780

The quick watch and immediate window during debugging both have a strange behavior when viewing a string which happens to be formatted as a date. Rather than show the actual string value, it seems to parse the string and display a locally formatted version of the string. This makes it very difficult to work with dates when you need to see how they are actually serialized.

Here is a sample from the interactive window showing it improperly display the first string but not another one:

```
moment().toISOString()
"10/21/2014 05:22:40"
'why: ' + moment().toISOString()
"why: 2014-10-21T05:23:05.052Z"
```

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>