Subversion Repository Public Repository

Nextrek

Diff Revisions 1051 vs 1052 for /Web/Smartcharging_search/js/scripts.js

Diff revisions: vs.
  @@ -31,18 +31,10 @@
31 31 }
32 32
33 33 function formatDate(date){
34 - /*var dateTmp = new Date(date);
35 - var day = dateTmp.getDate();
36 - var monthIndex = dateTmp.getMonth();
37 - var year = dateTmp.getFullYear();
38 - var hours = dateTmp.getHours();
39 - var mins = dateTmp.getMinutes();
40 -
41 - return day + "-" + monthIndex + "-" + year + ", " + hours + ":" + mins;*/
42 34 var dateDividerIndex = date.indexOf("T");
43 35 var timeDividerIndex = date.indexOf("Z");
44 36 var dateStr = date.substring(0, dateDividerIndex);
45 37 var timeStr = date.substring(dateDividerIndex + 1, timeDividerIndex);
46 38
47 - return dateStr + ', alle ' + timeStr;
39 + return dateStr + ', ' + getText("alle", document.documentElement.lang) + ' ' + timeStr;
48 40 }