+1998-05-08 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * stime.c (krb_stime):
+ * log.c (krb_new_log, krb_log):
+ * klog.c (klog): Print the year using 4 digits to avoid Y2K issues.
+
Wed Apr 15 18:07:00 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in (SHLIB_EXPDEPS):
(void) time(&now);
tm = localtime(&now);
- fprintf(logfile,"%2d-%s-%02d %02d:%02d:%02d ",tm->tm_mday,
- month_sname(tm->tm_mon + 1),tm->tm_year,
+ fprintf(logfile,"%2d-%s-%d %02d:%02d:%02d ",tm->tm_mday,
+ month_sname(tm->tm_mon + 1),1900+tm->tm_year,
tm->tm_hour, tm->tm_min, tm->tm_sec);
fprintf(logfile,"%s\n",logtxt);
(void) fclose(logfile);
(void) time(&now);
tm = localtime(&now);
- fprintf(logfile,"%2d-%s-%02d %02d:%02d:%02d ",tm->tm_mday,
- month_sname(tm->tm_mon + 1),tm->tm_year,
+ fprintf(logfile,"%2d-%s-%d %02d:%02d:%02d ",tm->tm_mday,
+ month_sname(tm->tm_mon + 1),1900+tm->tm_year,
tm->tm_hour, tm->tm_min, tm->tm_sec);
fprintf(logfile,format,a1,a2,a3,a4,a5,a6,a7,a8,a9,a0);
fprintf(logfile,"\n");
if (t) {
tm = localtime(&t);
- fprintf(logfile,"\n%2d-%s-%02d %02d:%02d:%02d %s",tm->tm_mday,
- month_sname(tm->tm_mon + 1),tm->tm_year,
+ fprintf(logfile,"\n%2d-%s-%d %02d:%02d:%02d %s",tm->tm_mday,
+ month_sname(tm->tm_mon + 1),1900+tm->tm_year,
tm->tm_hour, tm->tm_min, tm->tm_sec, string);
}
else {
adjusted_time = *t - CONVERT_TIME_EPOCH;
tm = localtime(&adjusted_time);
- (void) sprintf(st,"%2d-%s-%02d %02d:%02d:%02d",tm->tm_mday,
- month_sname(tm->tm_mon + 1),tm->tm_year,
+ (void) sprintf(st,"%2d-%s-%d %02d:%02d:%02d",tm->tm_mday,
+ month_sname(tm->tm_mon + 1),1900+tm->tm_year,
tm->tm_hour, tm->tm_min, tm->tm_sec);
return st;
}