Skip to content

Commit

Permalink
Merge branch 'master' into rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
davispuh committed Aug 3, 2017
2 parents 2deed06 + 556228c commit 1da3206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: ruby
rvm:
- 2.4.1
- 2.3
- 2.2
- 2.1
- 2.0.0
- 1.9.3
Expand Down
3 changes: 1 addition & 2 deletions lib/chronic/date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ def self.could_be_month?(month, width = nil)

# Checks if given number could be year
def self.could_be_year?(year, width = nil)
year >= 1 && year <= 9999 && (width.nil? || width == 2 || width == 4)
year >= 0 && year <= 9999 && (width.nil? || width == 2 || width == 4)
end

# Build a year from a 2 digit suffix.
#
# year - The two digit Integer year to build from.
Expand Down

0 comments on commit 1da3206

Please sign in to comment.