Skip to content

Commit

Permalink
allow dates back to the 1500s (#230)
Browse files Browse the repository at this point in the history
As reported in #229 the
oldest natural history records actually date back to the 1500s rather
than 1700.

I have confirmed there are some digitized records in GBIF from the
1600s.

Moving our zero date back a few hundred years.
  • Loading branch information
danstoner authored Apr 2, 2023
1 parent 0940d48 commit 687d139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idb/helpers/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@


def checkBounds(x):
lowerBound = datetime.datetime(1700, 1, 2, tzinfo=pytz.utc)
lowerBound = datetime.datetime(1500, 1, 2, tzinfo=pytz.utc)
upperBound = datetime.datetime.now(pytz.utc)
if isinstance(x, datetime.datetime):
return x < lowerBound or x > upperBound
Expand Down

0 comments on commit 687d139

Please sign in to comment.