Skip to content

Commit 636c5b1

Browse files
committed
set milliseconds
1 parent 883ac8a commit 636c5b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/src/main/java/com/bc/fiduceo/reader/smos/SmosL1CDailyGriddedReader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,14 @@ private void setSensingTimes(AcquisitionInfo acquisitionInfo) {
390390
utcCalendar.set(Calendar.HOUR_OF_DAY, 0);
391391
utcCalendar.set(Calendar.MINUTE, 0);
392392
utcCalendar.set(Calendar.SECOND, 0);
393+
utcCalendar.set(Calendar.MILLISECOND, 0);
393394

394395
acquisitionInfo.setSensingStart(utcCalendar.getTime());
395396

396397
utcCalendar.set(Calendar.HOUR_OF_DAY, 23);
397398
utcCalendar.set(Calendar.MINUTE, 59);
398399
utcCalendar.set(Calendar.SECOND, 59);
400+
utcCalendar.set(Calendar.MILLISECOND, 999);
399401

400402
acquisitionInfo.setSensingStop(utcCalendar.getTime());
401403
}

ingestion-tool/src/test/java/com/bc/fiduceo/ingest/IngestionToolIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ public void testIngest_miras_smos_CDF3TD() throws SQLException, ParseException {
11561156

11571157
final SatelliteObservation observation = getSatelliteObservation("SM_RE07_MIR_CDF3TD_20171120T000000_20171120T235959_330_001_7.tgz", satelliteObservations);
11581158
TestUtil.assertCorrectUTCDate(2017, 11, 20, 0, 0, 0, 0, observation.getStartTime());
1159-
TestUtil.assertCorrectUTCDate(2017, 11, 20, 23, 59, 59, 0, observation.getStopTime());
1159+
TestUtil.assertCorrectUTCDate(2017, 11, 20, 23, 59, 59, 999, observation.getStopTime());
11601160

11611161
assertEquals("miras-smos-CDF3TD", observation.getSensor().getName());
11621162

0 commit comments

Comments
 (0)