From ea3c192bb5a4abd48f895fb48e6c318c233cc16f Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Wed, 9 Apr 2014 21:26:43 -0400 Subject: [PATCH] newt: always prefix single digit days with 0 in 'h' view --- rc/bin/newt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/bin/newt b/rc/bin/newt index d22f30129..32e0b51b7 100755 --- a/rc/bin/newt +++ b/rc/bin/newt @@ -26,6 +26,8 @@ fn fmtd{ if(! ~ $date(1) [0-9]*) date=`{nshift $date} da=$date(1) + if(~ $da [0-9]) + da=0^$da switch($date(2)){ case Jan; mo=1 case Feb; mo=2