Changeset 14408


Ignore:
Timestamp:
11/23/16 16:08:14 (8 months ago)
Author:
mkommend
Message:

#2661: Fixed a bug in the TableFileparser that omits the correct detection of DateTime columns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TableFileParser.cs

    r14296 r14408  
    2828using System.IO;
    2929using System.Linq;
    30 using System.Runtime.Serialization;
    3130using System.Text;
    3231
     
    559558                doubleVals[i] = doubleVal;
    560559              } else if (DateTime.TryParse(tok, dateTimeFormatInfo, DateTimeStyles.NoCurrentDateDefault, out dateTimeValue)
    561                 && dateTimeValue.Year > 1 && dateTimeValue.Month > 1 && dateTimeValue.Day > 1 // if no date is given it is returned as 1.1.0001 -> don't allow this
     560                && (dateTimeValue.Year > 1 || dateTimeValue.Month > 1 || dateTimeValue.Day > 1)// if no date is given it is returned as 1.1.0001 -> don't allow this
    562561                ) {
    563562                type = TokenTypeEnum.DateTime;
Note: See TracChangeset for help on using the changeset viewer.