diff --git a/src/jrd/jrd.cpp b/src/jrd/jrd.cpp index 0deb0023e2..67078cb857 100644 --- a/src/jrd/jrd.cpp +++ b/src/jrd/jrd.cpp @@ -761,8 +761,8 @@ ISC_STATUS GDS_ATTACH_DATABASE(ISC_STATUS* user_status, attachment->att_charset = options.dpb_interp; - SLONG clock = time(NULL); - struct tm times = *localtime(reinterpret_cast(&clock)); + time_t clock = time(NULL); + struct tm times = *localtime(&clock); isc_encode_timestamp(×, &attachment->att_timestamp); if (options.dpb_lc_messages) { @@ -1929,8 +1929,8 @@ ISC_STATUS GDS_CREATE_DATABASE(ISC_STATUS* user_status, attachment->att_charset = options.dpb_interp; - SLONG clock = time(NULL); - struct tm times = *localtime(reinterpret_cast(&clock)); + time_t clock = time(NULL); + struct tm times = *localtime(&clock); isc_encode_timestamp(×, &attachment->att_timestamp); if (options.dpb_lc_messages)