Lines 347-353
Calendar_gregorian::setLocalDateTime( double fTimeInDays )
Link Here
|
347 |
"Calendar_gregorian::setLocalDateTime: " << std::fixed << fM << " rounded to " << fR); |
347 |
"Calendar_gregorian::setLocalDateTime: " << std::fixed << fM << " rounded to " << fR); |
348 |
int32_t nZoneOffset, nDSTOffset; |
348 |
int32_t nZoneOffset, nDSTOffset; |
349 |
UErrorCode status = U_ZERO_ERROR; |
349 |
UErrorCode status = U_ZERO_ERROR; |
350 |
body->getTimeZone().getOffset( fR, TRUE, nZoneOffset, nDSTOffset, status ); |
350 |
body->getTimeZone().getOffset( fR, true, nZoneOffset, nDSTOffset, status ); |
351 |
if ( !U_SUCCESS(status) ) throw ERROR; |
351 |
if ( !U_SUCCESS(status) ) throw ERROR; |
352 |
status = U_ZERO_ERROR; |
352 |
status = U_ZERO_ERROR; |
353 |
body->setTime( fR - (nZoneOffset + nDSTOffset), status ); |
353 |
body->setTime( fR - (nZoneOffset + nDSTOffset), status ); |