From 388d30c0631cacb3cb8b5317a9e68467b26ef04e Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sun, 6 Jan 2019 05:08:26 +0000 Subject: [PATCH] [bug] fix day array --- js/date.js | 2 +- js/helper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/date.js b/js/date.js index 1edd1e41..26ba8be9 100644 --- a/js/date.js +++ b/js/date.js @@ -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); diff --git a/js/helper.js b/js/helper.js index 52cb8627..3d28e852 100644 --- a/js/helper.js +++ b/js/helper.js @@ -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]; };