return fixupDate(nv);
throw new ARQInternalErrorException("Attempt to fixupDateOrDateTime on "+nv);
}
private static NodeValue fixupDateTime(NodeValue nv) {
DateTimeStruct dts = DateTimeStruct.parseDateTime(nv.asNode().getLiteralLexicalForm()) ;
if ( dts.timezone != null )
return null ;
dts.timezone = defaultTimezone ;
nv = NodeValue.makeDateTime(dts.toString()) ;
if ( !nv.isDateTime() )
throw new ARQInternalErrorException("Failed to reform an xsd:dateTime") ;
return nv ;
}