Fix a silly bit of code in date/time conversion code (I wrote it so I can say that) which throws away precision too soon, truncating to the nearest day.