[bug] fix day array

This commit is contained in:
zombieFox 2019-01-06 05:08:26 +00:00
parent 2699880987
commit 388d30c063
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ var date = (function() {
var _date = function() {
var date = helper.e(".date");
var time = _makeTimeObject();
time.day = helper.day(time.day - 1);
time.day = helper.day(time.day);
time.month = helper.month(time.month);
if (state.get().header.date.characterLength == "short") {
time.day = time.day.substring(0, 3);

View File

@ -44,7 +44,7 @@ var helper = (function() {
};
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];
};