OSDN Git Service

[fix] : Fixed time log
authormk-linux419 <m.k419sabuaka@gmail.com>
Sun, 17 May 2020 13:46:31 +0000 (22:46 +0900)
committermk-linux419 <m.k419sabuaka@gmail.com>
Sun, 17 May 2020 13:46:31 +0000 (22:46 +0900)
lubs

diff --git a/lubs b/lubs
index 1f59537..8511813 100755 (executable)
--- a/lubs
+++ b/lubs
@@ -41,11 +41,11 @@ _msg_common() {
         _time="$(("${_current_time}"-"${start_time}"))"
 
         if [[ "${_time}" -ge 3600 ]]; then
-            echo "[$(date -d ${_time} +%H:%M.%S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
+            echo "[$(date -d @${_time} +%H:%M.%S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
         elif [[ "${_time}" -ge 60 ]]; then
-            echo "[00:$(date -d ${_time} +%M.%S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
+            echo "[00:$(date -d @${_time} +%M.%S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
         else
-            echo "[00:00.$(date -d ${_time} +%S)] $("${script_path}/echo_color" -t 6 "[LUBS Core]")"
+            echo "[00:00.$(date -d @${_time} +%S)] $("${script_path}/echo_color" -t 6 "[LUBS Core]")"
         fi
     else
         "${script_path}/echo_color" -t 6 "[LUBS Core]"