fix: correctly read a date from a database if a date_only flag is set
This commit is contained in:
@@ -853,7 +853,7 @@ void DbConnector::get_value(const char * value_str, pt::Date & field_value, cons
|
||||
|
||||
if( field_type.is_date_only() )
|
||||
{
|
||||
field_value.ParseDayMonthYear(value_str);
|
||||
field_value.ParseYearMonthDay(value_str);
|
||||
}
|
||||
else
|
||||
if( field_type.is_time_only() )
|
||||
|
Reference in New Issue
Block a user