ValueError can be raised by the datetime module too...

fix #556