newt: always prefix single digit days with 0 in 'h' view

This commit is contained in:
stanley lieber 2014-04-09 21:26:43 -04:00
parent a4d818eedb
commit ea3c192bb5

View file

@ -26,6 +26,8 @@ fn fmtd{
if(! ~ $date(1) [0-9]*) if(! ~ $date(1) [0-9]*)
date=`{nshift $date} date=`{nshift $date}
da=$date(1) da=$date(1)
if(~ $da [0-9])
da=0^$da
switch($date(2)){ switch($date(2)){
case Jan; mo=1 case Jan; mo=1
case Feb; mo=2 case Feb; mo=2