From 676e2cc72d499a1243371ca93872b4600db92b3d Mon Sep 17 00:00:00 2001 From: Timothe Litt Date: Thu, 18 May 2017 23:31:20 -0400 Subject: [PATCH] Correct timestamp in protocol debug. Inadvertently duplicated seconds & truncated fraction. --- dns_scripts/dns_godaddy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns_scripts/dns_godaddy b/dns_scripts/dns_godaddy index 5e9aa0b..4443bd4 100755 --- a/dns_scripts/dns_godaddy +++ b/dns_scripts/dns_godaddy @@ -187,7 +187,7 @@ fi authhdr="Authorization: sso-key $GODADDY_KEY:$GODADDY_SECRET" if [ -n "$TRACE" ]; then - function timestamp { local tm="`date '+%T:%S%N'`" + function timestamp { local tm="`LC_TIME=C date '+%T.%N'`" local class="$1"; shift echo "${tm:0:15} ** ${class}: $*" >>"$TRACE" }