Compare View

switch
from
...
to
 
Commits (2)
src/TimeTableCatalog/TimeTable.cc
... ... @@ -26,16 +26,22 @@ log4cxx::LoggerPtr TimeTable::_logger(
26 26 TimeTable::TimeTable() :
27 27 _creationDate(0), _timeFormat(TimeTable::TIME_FORMAT::UNKNOWN), _extTimeFormat(AMDA::OutputFormatTime::FORMAT_OUTPUT_TIME_ISO), _modificationDate(0),
28 28 _listStartDate(0), _listStopDate(0), _contact("None"), _contactID("None"),_eventTableVersion(SpaceData::EVENT_TABLE_VERSION_DEFAULT), _listID(SpaceData::LIST_ID_DEFAULT){
  29 + time_t lTTCreationDate = time(nullptr);
  30 + _creationDate = lTTCreationDate;
29 31 }
30 32  
31 33 TimeTable::TimeTable(TIME_FORMAT pFormat) :
32 34 _creationDate(0), _timeFormat(pFormat), _extTimeFormat(AMDA::OutputFormatTime::FORMAT_OUTPUT_TIME_ISO), _modificationDate(0),
33 35 _listStartDate(0), _listStopDate(0), _contact("None"), _contactID("None"),_eventTableVersion(SpaceData::EVENT_TABLE_VERSION_DEFAULT), _listID(SpaceData::LIST_ID_DEFAULT) {
  36 + time_t lTTCreationDate = time(nullptr);
  37 + _creationDate = lTTCreationDate;
34 38 }
35 39  
36 40 TimeTable::TimeTable(AMDA::OutputFormatTime pFormat) :
37 41 _creationDate(0), _timeFormat(TimeTable::TIME_FORMAT::UNKNOWN), _extTimeFormat(pFormat),_modificationDate(0),
38 42 _listStartDate(0), _listStopDate(0), _contact("None"), _contactID("None"),_eventTableVersion(SpaceData::EVENT_TABLE_VERSION_DEFAULT), _listID(SpaceData::LIST_ID_DEFAULT) {
  43 + time_t lTTCreationDate = time(nullptr);
  44 + _creationDate = lTTCreationDate;
39 45 }
40 46  
41 47 TimeTable::~TimeTable() {
... ...