shithub: regress

Download patch

ref: e87ff91fdaa4b98530a7048ae460912647d95bd8
parent: f76209e01bf9954bd50a84caa02c8883cab1e04a
author: glenda <[email protected]>
date: Thu Dec 2 21:28:45 EST 2021

zones: date -m is gone

--- a/libc/zones.rc
+++ b/libc/zones.rc
@@ -6,7 +6,7 @@
 for(f in /adm/timezone/*){
 	if(! ~ $f /adm/timezone/README){
 		cat $f >/env/timezone
-		tm=`{date -m}
+		tm=`{date -f'WW, DD MMM YYYY hh:mm:ss Z'}
 		x=`{date -n}
 		y=`{seconds $"tm}
 		if(! ~ $x $y){