You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var http = require('http');
var date = new Date();
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
date = new Date();
res.end('Hello World! Date is: ' + date.toLocaleString("de"));
}).listen(7070);
output
Hello World! Date is: 9/10/2020, 12:50:53
expected output
Hello World! Date is: 10.9.2020, 12:50:53 (dd.mm.yyyy with correct separator)
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
see above
What do you see instead?
Additional information
The text was updated successfully, but these errors were encountered:
What steps will reproduce the bug?
program
var http = require('http');
var date = new Date();
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
date = new Date();
res.end('Hello World! Date is: ' + date.toLocaleString("de"));
}).listen(7070);
output
Hello World! Date is: 9/10/2020, 12:50:53
expected output
Hello World! Date is: 10.9.2020, 12:50:53 (dd.mm.yyyy with correct separator)
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
see above
What do you see instead?
Additional information
The text was updated successfully, but these errors were encountered: