$OpenBSD: patch-pyramid_c,v 1.1.1.1 2002/04/27 15:23:58 wcobb Exp $ --- pyramid.c.orig Fri Nov 9 11:50:21 2001 +++ pyramid.c Fri Nov 9 11:51:34 2001 @@ -67,7 +67,7 @@ getlocaltm() Time_t ltime; time(<ime); - return (localtime(ltime)); + return (localtime(<ime)); #endif /* MSDOS or UNIX */ } @@ -197,19 +197,14 @@ char * Asctime(struct tm *tmp) { static char s[LASCTIME]; - char *tzname; - if ((tzname = getenv("TZ")) == NULL) { - tzname = TZNAME_DFL; - } - sprintf(s, "%s %s %2d %02d:%02d:%02d %4d %3.3s\n", + sprintf(s, "%s %s %2d %4d %02d:%02d:%02d\n", downame[ymd2wday(tmp -> tm_year, tmp -> tm_mon, tmp -> tm_mday)], capitalize(monname[tmp -> tm_mon]), tmp -> tm_mday, - tmp -> tm_hour, tmp -> tm_min, tmp -> tm_sec, tmp -> tm_year + 1900, - tzname + tmp -> tm_hour, tmp -> tm_min, tmp -> tm_sec ); return (s);