[bug] fix day array
This commit is contained in:
parent
2699880987
commit
388d30c063
|
@ -23,7 +23,7 @@ var date = (function() {
|
||||||
var _date = function() {
|
var _date = function() {
|
||||||
var date = helper.e(".date");
|
var date = helper.e(".date");
|
||||||
var time = _makeTimeObject();
|
var time = _makeTimeObject();
|
||||||
time.day = helper.day(time.day - 1);
|
time.day = helper.day(time.day);
|
||||||
time.month = helper.month(time.month);
|
time.month = helper.month(time.month);
|
||||||
if (state.get().header.date.characterLength == "short") {
|
if (state.get().header.date.characterLength == "short") {
|
||||||
time.day = time.day.substring(0, 3);
|
time.day = time.day.substring(0, 3);
|
||||||
|
|
|
@ -44,7 +44,7 @@ var helper = (function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
var day = function(index) {
|
var day = function(index) {
|
||||||
var all = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
|
var all = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
||||||
return all[index];
|
return all[index];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue