code: regress

Download patch

ref: e66ee6b0e0cfebb6b9340c9fa9087aebac77cc9d
parent: f76209e01bf9954bd50a84caa02c8883cab1e04a
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Apr 16 19:57:38 EDT 2022

zones.rc: date -m is gone, fix tests.

--- 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){