aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_log
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_ak_log')
-rwxr-xr-xlib/_ak_log2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_ak_log b/lib/_ak_log
index 7f832d8..a3ee259 100755
--- a/lib/_ak_log
+++ b/lib/_ak_log
@@ -8,7 +8,7 @@ _ak_log_print_log_line(){
messagetype="$(echo "$*" | awk '{print $3}')"
message="$(echo "$*" | cut -d ' ' -f4-)"
printf '%s \033[1;32m%s\033[0;00m \033[1;31m%s\033[0;00m %s\n' \
- "$(date --date=@$timestamp +%Y%m%d_%H%M%S)" \
+ "$(date --date=@$timestamp +%Y%m%d_%H%M%S 2>/dev/null || date -r $timestamp +%Y%m%d_%H%M%S 2>/dev/null)" \
"$program" \
"$messagetype" \
"$message"