From cfc2b789982e79ec31a837b925fee64aff934f28 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 29 Jul 2015 16:35:08 -0700 Subject: [PATCH] Truncate incoming timestamps to parse_timestamp to length 11 so that we can handle millisecond timestamps. --- dotfiles/lib/shellenv/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index 539ee7f3..d107736e 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -343,7 +343,7 @@ function timestamp { } function parse_timestamp { - date -d "@$1" + date -d "@$(echo $1 | cut -c -10)" } function refresh_config {