Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call correct time function #651

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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