Skip to content
Snippets Groups Projects
Commit 92705020 authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

Merged in dev (pull request #26)

Dev
parents 0997aa9a 37ffd4fc
No related branches found
No related tags found
No related merge requests found
<?php
<?php
?>
\ No newline at end of file
......@@ -31,12 +31,12 @@ this.checkShowCondition=function() {
}
this.dow = function(d) {
if (typeof(d)!='number' || d <= 0 || d >= 7)
if (typeof(d)!='number' || d < 0 || d >= 7)
return undefined;
return ["So","Mo","Di","Mi","Do","Fr,","Sa"][d];
}
this.getLongMonth = function(month){
if (typeof(month)!='number' || month <= 0 || month >= 12)
if (typeof(month)!='number' || month < 0 || month >= 12)
return undefined;
return ["Januar","Feburar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"][month];
}
......@@ -65,7 +65,7 @@ this.show=function() {
tag = tag < 10 ? "0" + tag : tag;
h = h < 10 ? "0" + h : h;
m = m < 10 ? "0" + m : m;
zeitDiv.text(
this.dow(d.getDay()) + ", " +
tag + ". " +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment