Improve assert message in date encoder.
assert -> ValueError
Merge branch 'master' into date-encoder
Bug fix.
Merge branch 'master' into date-encoder
Merge pull request #277 from scottpurdy/date-encoder

Improve assert message in date encoder.
Merge remote-tracking branch 'upstream/master' into run-tests-exit-status