datepick - day of the week bug
This commit is contained in:
parent
f66fc0c524
commit
91182f5c0d
2 changed files with 6 additions and 1 deletions
|
@ -38,6 +38,6 @@ pass = demo
|
|||
|
||||
[system]
|
||||
system_name = blog
|
||||
version = 1.16
|
||||
version = 1.17
|
||||
debug = true
|
||||
logs = false
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue