about summary refs log tree commit diff
path: root/time/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/strftime.c')
-rw-r--r--time/strftime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/strftime.c b/time/strftime.c
index 625508c72e..c47fc07548 100644
--- a/time/strftime.c
+++ b/time/strftime.c
@@ -278,7 +278,7 @@ DEFUN(strftime, (s, maxsize, format, tp),
 	  break;
 
 	case 'y':
-	  fmt(2, (p, "%.2d", tp->tm_year));
+	  fmt(2, (p, "%.2d", tp->tm_year % 100));
 	  break;
 
 	case 'Z':