summaryrefslogtreecommitdiff
path: root/rc/bin/newt
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2014-04-09 21:26:43 -0400
committerstanley lieber <stanley.lieber@gmail.com>2014-04-09 21:26:43 -0400
commitea3c192bb5a4abd48f895fb48e6c318c233cc16f (patch)
treeed6269c10523294af22905011a437ec98e96d80a /rc/bin/newt
parenta4d818eedbea608e3d5f1909250f0563ecde6076 (diff)
downloadplan9front-ea3c192bb5a4abd48f895fb48e6c318c233cc16f.tar.xz
newt: always prefix single digit days with 0 in 'h' view
Diffstat (limited to 'rc/bin/newt')
-rwxr-xr-xrc/bin/newt2
1 files changed, 2 insertions, 0 deletions
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