From 5d302f0f2a0b81afccb8d94f40cf7981a1174dc2 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 13 Dec 1999 21:43:53 +0000 Subject: [PATCH] Y2K output tweak. --- src/Cockpit/cockpit.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cockpit/cockpit.cxx b/src/Cockpit/cockpit.cxx index 57748c54b..2ec6736f6 100644 --- a/src/Cockpit/cockpit.cxx +++ b/src/Cockpit/cockpit.cxx @@ -109,8 +109,8 @@ get_formated_gmt_time( void ) static char buf[32]; FGTime *t = FGTime::cur_time_params; const struct tm *p = t->getGmt(); - sprintf( buf, "%d/%d/%2d %d:%02d:%02d", - p->tm_mon+1, p->tm_mday, p->tm_year, + sprintf( buf, "%d/%d/%4d %d:%02d:%02d", + p->tm_mon+1, p->tm_mday, 1900 + p->tm_year, p->tm_hour, p->tm_min, p->tm_sec); return buf; }