diff --git a/config.ini b/config.ini index 16bf730f023c8b080f862546c9b02ff30800035c..5b145fa332f89e07e41ecf581efffa89fd09de0d 100755 --- a/config.ini +++ b/config.ini @@ -38,6 +38,6 @@ pass = demo [system] system_name = blog -version = 1.16 +version = 1.17 debug = true logs = false \ No newline at end of file diff --git a/static/scripts/datepick.js b/static/scripts/datepick.js index 1ff938c1b4a3ad9858c85ee94c44e0c97a4592f8..757761308b6afc80dad727abf9c93ff3919ed2a2 100755 --- a/static/scripts/datepick.js +++ b/static/scripts/datepick.js @@ -98,6 +98,11 @@ var datepick = function(container) { // Get first day of week var dayOfWeek = new Date(this.y, this.m, 1).getDay(); + + // 0 is sunday - last day + if(dayOfWeek == 0) { + dayOfWeek = 7; + } // Previous month this.dec_m();