** 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
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;
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;
}