mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-01 14:20:11 +01:00
2025-10-23 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDCart::updateLength()' that could cause patently ridiculous values to be calculated for the 'Start' and 'End' date-time columns in the cart library. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -49,12 +49,17 @@ QString RDCheckDateTime(QTime const &time, QString const &format)
|
||||
QString RDCheckDateTime(QDateTime const &datetime, QString const &format)
|
||||
{
|
||||
QString checkedValue = "NULL";
|
||||
|
||||
if((datetime==RDCheckDateTime_InvalidStart)||
|
||||
(datetime==RDCheckDateTime_InvalidEnd)) {
|
||||
return checkedValue;
|
||||
}
|
||||
|
||||
if(datetime.isValid())
|
||||
if(datetime.isValid()) {
|
||||
checkedValue = "\"" + datetime.toString(format) + "\"";
|
||||
|
||||
}
|
||||
|
||||
return checkedValue;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user