Skip to content

Commit

Permalink
Added condition in _daysFromDate(...) that year >= 1970
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Jun 8, 2018
1 parent 28b5b2e commit 4002b27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/BokkyPooBahsDateTimeLibrary.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ library BokkyPooBahsDateTimeLibrary {
// - offset
// ------------------------------------------------------------------------
function _daysFromDate(uint year, uint month, uint day) internal pure returns (uint _days) {
require(year >= 1970);
int _year = int(year);
int _month = int(month);
int _day = int(day);
Expand Down

0 comments on commit 4002b27

Please sign in to comment.