Skip to content

Commit

Permalink
Fix Leap Day bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains authored Jul 30, 2019
1 parent a1c95d2 commit 4f2ef76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Utils.vala
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ namespace Niu.Utils {
m = "+";
} else {
// Ascii: 97 = A
double l = Math.floor(((doty) / 364) * 26);
double an = 97 + l;
double an = 97 + Math.floor(doty / 14);
resm = ((char)an).to_string ().up ();
m = resm;
}
Expand Down

0 comments on commit 4f2ef76

Please sign in to comment.