From 0907e55241ef72fb5eda35e98aff2fc406bd5a1a Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 21 Feb 1995 23:12:47 +0000 Subject: [PATCH] Put bullet-proofing code into OS2/FILE-TIME->STRING. It turns out that CD-ROM root directories have unusual time stamps. --- v7/src/runtime/os2prm.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/v7/src/runtime/os2prm.scm b/v7/src/runtime/os2prm.scm index f98b3ee02..eb2517044 100644 --- a/v7/src/runtime/os2prm.scm +++ b/v7/src/runtime/os2prm.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: os2prm.scm,v 1.6 1995/02/14 00:35:23 cph Exp $ +$Id: os2prm.scm,v 1.7 1995/02/21 23:12:47 cph Exp $ Copyright (c) 1994-95 Massachusetts Institute of Technology @@ -117,7 +117,9 @@ MIT in each case. |# (year (quotient time 16))) (string-append (vector-ref '#("Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec") - (- month 1)) + (if (<= 1 month 12) + (- month 1) + 0)) " " (string-pad-left (number->string day) 2 #\space) " " -- 2.25.1