Fixes spec tests failing on 'date'.