mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Fixed the getDayOfYear function to start at 1 instead of 0.
This commit is contained in:
parent
3f12daa372
commit
0f8c1042ad
@ -304,7 +304,7 @@ Date.prototype.getDayOfYear = function () {
|
||||
for (var i = 0; i < this.getMonth(); ++i) {
|
||||
num += Date.daysInMonth[i]
|
||||
}
|
||||
return num + this.getDate() - 1
|
||||
return num + this.getDate()
|
||||
};
|
||||
Date.prototype.getWeekOfYear = function () {
|
||||
var now = this.getDayOfYear() + (4 - this.getDay());
|
||||
@ -388,4 +388,4 @@ Date.patterns = {
|
||||
SortableDateTimePattern: "Y-m-d\\TH:i:s",
|
||||
UniversalSortableDateTimePattern: "Y-m-d H:i:sO",
|
||||
YearMonthPattern: "F, Y"
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user