Skip to content

Commit

Permalink
Merge 89a8864 into a411897
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyZhang committed Apr 10, 2015
2 parents a411897 + 89a8864 commit 61c74fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions silverberg/marshal.py
Expand Up @@ -76,6 +76,8 @@ def marshal(term):
# If the datetime is naive, then it is considered UTC time and stored. If it is
# timezone-aware, then its corresponding UTC time is stored
return str(int(calendar.timegm(term.utctimetuple()) * 1000 + term.microsecond / 1e3))
elif term is None:
return "null"
else:
return str(term)

Expand Down

0 comments on commit 61c74fe

Please sign in to comment.