Skip to content

Commit

Permalink
Merge pull request #651 from joakim-hove/fix-ecl-util-datetime-values
Browse files Browse the repository at this point in the history
Call correct time function
  • Loading branch information
jokva committed Sep 6, 2019
2 parents 3201b0a + d2ae1b9 commit a9d4dd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecl/ecl_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ void ecl_util_set_date_values(time_t t , int * mday , int * month , int * year)
}

void ecl_util_set_datetime_values(time_t t , int * sec, int * min, int * hour, int * mday , int * month , int * year) {
return util_set_date_values_utc(t,mday,month,year);
return util_set_datetime_values_utc(t,sec,min,hour,mday,month,year);
}


Expand Down
1 change: 1 addition & 0 deletions lib/ecl/tests/ecl_sum_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ void test_write_read( ) {
write_summary( name , start_time , nx , ny , nz , num_dates , num_ministep , ministep_length);
ecl_sum = ecl_sum_fread_alloc_case( name , ":" );
test_assert_true( ecl_sum_is_instance( ecl_sum ));
test_assert_true( ecl_sum_get_start_time(ecl_sum) == start_time );

/* Time direction */
test_assert_time_t_equal( start_time , ecl_sum_get_start_time(ecl_sum));
Expand Down

0 comments on commit a9d4dd9

Please sign in to comment.