Skip to content

Commit

Permalink
value are allowed to be None
Browse files Browse the repository at this point in the history
  • Loading branch information
janwijbrand committed Nov 20, 2015
1 parent 2892a41 commit 5c18d02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/grokcore/catalog/index.py
Expand Up @@ -165,6 +165,8 @@ class Value(AttributeIndexDefinition):


def to_timestamp(dt):
if dt is None:
return None
return calendar.timegm(dt.timetuple())


Expand Down

0 comments on commit 5c18d02

Please sign in to comment.