X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Farray2dfile.cpp;h=315ff4663bb0e79842f4a9baa2ed22ac41eb60eb;hp=d60381318d132fc35fe6e47b63f78c5a5231d0f8;hb=949b7c917af311cd38f911bc5d0af36f524a6086;hpb=2f3d6e2580db607105bb072b13e4aff453ae4495 diff --git a/libctsim/array2dfile.cpp b/libctsim/array2dfile.cpp index d603813..315ff46 100644 --- a/libctsim/array2dfile.cpp +++ b/libctsim/array2dfile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: array2dfile.cpp,v 1.1 2000/06/26 21:15:24 kevin Exp $ +** $Id: array2dfile.cpp,v 1.2 2000/06/27 10:48:11 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -46,8 +46,8 @@ Array2dFileLabel::init (void) m_labelType = L_EMPTY; time_t t = time(0); tm* lt = localtime(&t); - m_year = lt->tm_year + 1900; - m_month = lt->tm_mon + 1; + m_year = lt->tm_year; + m_month = lt->tm_mon; m_day = lt->tm_mday; m_hour = lt->tm_hour; m_minute = lt->tm_min; @@ -107,7 +107,7 @@ const string& Array2dFileLabel::getDateString (void) const { ostringstream oss; - oss << m_month <<"/"<< m_day <<"/"<< m_year << " " << m_hour <<":"<< m_minute <<":"<< m_second; + oss << m_month + 1 <<"/"<< m_day <<"/"<< m_year + 1900 << " " << m_hour <<":"<< m_minute <<":"<< m_second; m_strDate = oss.str(); return m_strDate; }