summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-18 10:56:11 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-18 10:56:11 (EDT)
commit71e89994b52e151113eb65437a1a43ebb837f36d (patch)
tree7df778f4aa67d5699f03c0ff7855d0fb36849194
parentb3b32327e371d87a4ef36727b840c0e844b6f148 (diff)
_ob_gmtime(): Fix numbers being interpreted in octal
-rw-r--r--lib/time.sh2
1 files changed, 1 insertions, 1 deletions
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
}