From 407dd48a638c5846247f86102da1ca8493a2c8d8 Mon Sep 17 00:00:00 2001 From: "roman.khlopkov" <roman.khlopkov@demlabs.net> Date: Wed, 20 Dec 2023 11:49:59 +0300 Subject: [PATCH] [*] Pipeline fix --- modules/type/blocks/dap_chain_cs_blocks.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/type/blocks/dap_chain_cs_blocks.c b/modules/type/blocks/dap_chain_cs_blocks.c index 2a3716809b..cd39983375 100644 --- a/modules/type/blocks/dap_chain_cs_blocks.c +++ b/modules/type/blocks/dap_chain_cs_blocks.c @@ -661,8 +661,7 @@ static int s_cli_blocks(int a_argc, char ** a_argv, char **a_str_reply) dap_string_append_printf(l_str_tmp, "\t\t\tcell_id: 0x%016"DAP_UINT64_FORMAT_X"\n", l_block->hdr.cell_id.uint64); dap_string_append_printf(l_str_tmp, "\t\t\tchain_id: 0x%016"DAP_UINT64_FORMAT_X"\n", l_block->hdr.chain_id.uint64); char buf[50]; - time_t l_ts = l_block->hdr.ts_created; - ctime_r(&l_ts, buf); + dap_time_to_str_rfc822(buf, 50, l_block->hdr.ts_created); dap_string_append_printf(l_str_tmp, "\t\t\tts_created: %s\n", buf); // Dump Metadata @@ -708,13 +707,12 @@ static int s_cli_blocks(int a_argc, char ** a_argv, char **a_str_reply) sizeof (l_datum->header)); break; } - time_t l_datum_ts_create = (time_t) l_datum->header.ts_create; // Nested datums dap_string_append_printf(l_str_tmp,"\t\t\t\tversion:=0x%02X\n", l_datum->header.version_id); const char * l_datum_type_str="UNKNOWN"; DAP_DATUM_TYPE_STR(l_datum->header.type_id, l_datum_type_str); dap_string_append_printf(l_str_tmp,"\t\t\t\ttype_id:=%s\n", l_datum_type_str); - ctime_r(&l_datum_ts_create, buf); + dap_gbd_time_to_str_rfc822(buf, 50, l_datum->header.ts_create); dap_string_append_printf(l_str_tmp,"\t\t\t\tts_create=%s\n", buf); dap_string_append_printf(l_str_tmp,"\t\t\t\tdata_size=%u\n", l_datum->header.data_size); dap_chain_datum_dump(l_str_tmp, l_datum, "hex", l_net->pub.id); @@ -743,7 +741,7 @@ static int s_cli_blocks(int a_argc, char ** a_argv, char **a_str_reply) size_t l_block_count = 0; dap_pkey_t * l_pub_key = NULL; dap_hash_fast_t l_from_hash = {}, l_to_hash = {}, l_pkey_hash = {}; - time_t l_from_time = 0, l_to_time = 0; + dap_time_t l_from_time = 0, l_to_time = 0; l_signed_flag = dap_cli_server_cmd_check_option(a_argv, 1, a_argc, "signed") > 0; l_first_signed_flag = dap_cli_server_cmd_check_option(a_argv, 1, a_argc, "first_signed") > 0; -- GitLab