diff --git a/config.ini b/config.ini index 16bf730..5b145fa 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 1ff938c..7577613 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();