diff --git a/http_server/http_client/dap_http_client.c b/http_server/http_client/dap_http_client.c
index 430a7418c9fb0d9e41a2a50d056a95d6f5a5eba4..7d20c29dafb2bf9c22764c6d73bb832397d2c03b 100755
--- a/http_server/http_client/dap_http_client.c
+++ b/http_server/http_client/dap_http_client.c
@@ -599,14 +599,14 @@ void dap_http_client_out_header_generate(dap_http_client_t *cl_ht)
 {
   char buf[1024];
   time_t current_time = time( NULL );
-  dap_time_to_str_rfc822( buf, sizeof(buf), current_time );
+  time_to_str_rfc822( buf, sizeof(buf), current_time );
 
   dap_http_header_add( &cl_ht->out_headers,"Date", buf );
 
   if ( cl_ht->reply_status_code == 200 ) {
 
     if ( cl_ht->out_last_modified ) {
-      dap_time_to_str_rfc822( buf, sizeof(buf), cl_ht->out_last_modified );
+      time_to_str_rfc822( buf, sizeof(buf), cl_ht->out_last_modified );
       dap_http_header_add( &cl_ht->out_headers, "Last-Modified", buf );
     }
     if ( cl_ht->out_content_type[0] ) {