fix: correctly read a date from a database if a date_only flag is set
This commit is contained in:
parent
a4a1acebeb
commit
a3c337355d
|
@ -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() )
|
||||
|
|
Loading…
Reference in New Issue