Use a superior date format

This commit is contained in:
Jan Philipp Timme 2017-12-29 21:28:05 +01:00
parent 5edaf17c71
commit 881c51792d

View File

@ -52,9 +52,7 @@ preprocessor.load(function(data) {
var raceD = slyelement.curRaces[race];
$("#courseSelection").append("<li data=\"" + raceD.raceInfo.raceId + "\">" +
"<span class=\"coursename\">" + raceD.raceInfo.name +"</span>"+
"<div class=\"courseimagecontainer\"></div>"
+ raceD.raceInfo.date.toLocaleDateString("en-US") +
"</li>");
"<div class=\"courseimagecontainer\"></div>" + raceD.raceInfo.date.toLocaleDateString("de-DE") + "</li>");
$("#courseSelection li").click(function(event) {
var raceI = event.currentTarget.attributes.data.value;