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
1 changed files with 1 additions and 3 deletions

View File

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