From 71e89994b52e151113eb65437a1a43ebb837f36d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 18 Jun 2019 10:56:11 -0400 Subject: _ob_gmtime(): Fix numbers being interpreted in octal --- (limited to 'lib') diff --git a/lib/time.sh b/lib/time.sh index 661aa62..aa4990b 100644 --- a/lib/time.sh +++ b/lib/time.sh @@ -166,7 +166,7 @@ _ob_gmtime() done mday=$((${timep} - $(_ob_month_to_days ${mon} ${year}) + 1)) - printf '%04d %02d %02d %02d %02d %02d' \ + printf '%d %d %d %d %d %d' \ ${year} ${mon} ${mday} ${hour} ${min} ${sec} return 0 } -- cgit v0.9.1