Fix #562 make sure datetime.getFieldValue does not return a string