Skip to content

Commit

Permalink
Merge pull request #2 from PickwickSoft/dev
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
garlontas authored Mar 23, 2022
2 parents 5d66bb3 + 79eeb21 commit 1e5790d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions date.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
let today = new Date();

function dateToLatinDate(date) {
let day = date.getDate();
let idus = getIdus(date.getMonth());
Expand All @@ -10,6 +8,8 @@ function dateToLatinDate(date) {
return getDateText("Idus", 0, date);
} else if (day === idus - 1) {
return getDateText("Idus", 1, date)
} else if (day === 1) {
return getDateText("Kalendas", 0, date)
} else if (day < idus) {
if (day > nonae) {
return getDateText("Idus", calcDaysBeforeEvent(idus, day), date)
Expand Down

0 comments on commit 1e5790d

Please sign in to comment.