We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e806dd commit 6a5e23cCopy full SHA for 6a5e23c
1 file changed
test/test.js
@@ -1213,7 +1213,7 @@
1213
it("should correctly parse example 3", function () {
1214
var res = js2xmlparser("person", {
1215
"email": function() {return "john@smith.com";},
1216
- "dateOfBirth": new Date(1964, 7, 26)
+ "dateOfBirth": new Date(Date.UTC(1964, 7, 26))
1217
}, {
1218
declaration: {
1219
include: false
@@ -1231,7 +1231,7 @@
1231
}
1232
});
1233
res.should.equal("<person><email>function () {return "john@smith.com";}</email>" +
1234
- "<dateOfBirth>1964-08-26T04:00:00.000Z</dateOfBirth></person>");
+ "<dateOfBirth>1964-08-26T00:00:00.000Z</dateOfBirth></person>");
1235
1236
1237
it("should correctly parse example 4", function () {
0 commit comments