Skip to content

Commit

Permalink
Merge pull request Project-DARC#15 from xinbenlv/patch-1
Browse files Browse the repository at this point in the history
Fix 13 Months Bug - Update TimeStateFunction.sol
  • Loading branch information
lidangzzz authored Aug 2, 2023
2 parents dcc8c9d + 0abbfee commit 088d447
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ contract TimeStateFunction is MachineStateManager {
_daysPerMonth[5] = 30;
_daysPerMonth[6] = 31;
_daysPerMonth[7] = 31;
_daysPerMonth[8] = 31;
_daysPerMonth[9] = 30;
_daysPerMonth[10] = 31;
_daysPerMonth[11] = 30;
_daysPerMonth[12] = 31;
_daysPerMonth[8] = 30;
_daysPerMonth[9] = 31;
_daysPerMonth[10] = 30;
_daysPerMonth[11] = 31;

uint256 _month;
for (_month = 0; _month < 12; _month++) {
Expand All @@ -53,4 +52,4 @@ contract TimeStateFunction is MachineStateManager {

return (_year, _month + 1, _day, _hour, _minute, _second);
}
}
}

0 comments on commit 088d447

Please sign in to comment.