Subversion Repository Public Repository

litesoft

Diff Revisions 49 vs 198 for /trunk/Java/core/Anywhere/src/org/litesoft/core/util/TypeConverter.java

Diff revisions: vs.
  @@ -315,11 +315,7 @@
315 315 {
316 316 return temporal;
317 317 }
318 - if ( pTimeRes.getIndex() > temporal.getResolutionIndex() )
319 - {
320 - return temporal.copyWithExpandedResolution( pTimeRes );
321 - }
322 - return temporal.copyWithReducedResolution( pTimeRes );
318 + return temporal.copyWithUpdatedResolution( pTimeRes );
323 319 }
324 320
325 321 public static SimpleTimestamp to_SimpleTimestamp( Object pObject )
  @@ -344,11 +340,7 @@
344 340 {
345 341 return temporal;
346 342 }
347 - if ( pTimeRes.getIndex() > temporal.getResolutionIndex() )
348 - {
349 - return temporal.copyWithExpandedResolution( pTimeRes );
350 - }
351 - return temporal.copyWithReducedResolution( pTimeRes );
343 + return temporal.copyWithUpdatedResolution( pTimeRes );
352 344 }
353 345
354 346 public static SimpleDate to_SimpleDate( String pFormat, Object pObject )