r122: *** empty log message ***
[ctsim.git] / libctsim / array2dfile.cpp
index d60381318d132fc35fe6e47b63f78c5a5231d0f8..315ff4663bb0e79842f4a9baa2ed22ac41eb60eb 100644 (file)
@@ -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;
 }