mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-08 08:01:27 +02:00
Random Idiocy fixes
Compilation fixes due to idiocy as usual (apologies)
This commit is contained in:
parent
f1175cd2f2
commit
8baed5b104
@ -670,7 +670,7 @@ void RDCartSlot::LogPlayout(RDPlayDeck::State state)
|
||||
datetime.setDate(datetime.date().addDays(-1));
|
||||
}
|
||||
if(!slot_svcname.isEmpty()) {
|
||||
QDateTime eventDateTime=QDateTime::QDateTime(datetime::date(),
|
||||
QDateTime eventDateTime(datetime.date(),
|
||||
slot_logline->startTime(RDLogLine::Actual));
|
||||
QString svctablename=slot_svcname;
|
||||
svctablename.replace(" ","_");
|
||||
|
@ -1095,7 +1095,7 @@ void RDCut::setMetadata(RDWaveData *data) const
|
||||
startDateTime.setTime(QTime(0,0,0));
|
||||
|
||||
sql+=QString().sprintf("START_DATETIME=%s,",
|
||||
(const char *)RDCheckDateTime(startDateTime));
|
||||
(const char *)RDCheckDateTime(startDateTime,"yyyy-MM-dd hh:mm:ss"));
|
||||
|
||||
if(data->endDate().isValid()&&(data->endDate().year()<8000)) {
|
||||
|
||||
|
@ -898,7 +898,7 @@ void RDFeed::SetRow(const QString ¶m,const QString &value) const
|
||||
}
|
||||
|
||||
void RDFeed::SetRow(const QString ¶m,const QDateTime &value,
|
||||
const QString format) const
|
||||
const QString &format) const
|
||||
{
|
||||
RDSqlQuery *q;
|
||||
QString sql;
|
||||
|
@ -123,6 +123,8 @@ class RDFeed : public QObject
|
||||
QString GetTempFilename() const;
|
||||
void SetRow(const QString ¶m,int value) const;
|
||||
void SetRow(const QString ¶m,const QString &value) const;
|
||||
void SetRow(const QString ¶m,const QDateTime &value,
|
||||
const QString &format) const;
|
||||
QString feed_keyname;
|
||||
unsigned feed_id;
|
||||
};
|
||||
|
@ -76,6 +76,7 @@ class RDPodcast
|
||||
private:
|
||||
void SetRow(const QString ¶m,int value) const;
|
||||
void SetRow(const QString ¶m,const QString &value) const;
|
||||
void SetRow(const QString ¶m,const QDateTime &datetime,const QString &value) const;
|
||||
QString podcast_keyname;
|
||||
unsigned podcast_id;
|
||||
};
|
||||
|
@ -1488,8 +1488,8 @@ void RDSoundPanel::LogTraffic(RDPanelButton *button)
|
||||
|
||||
QString eventDateTimeSQL = "NULL";
|
||||
|
||||
if(dateTime.isValid() && button->startTime().isValid())
|
||||
eventDateTimeSQL = RDCheckDateTime(QDateTime(dateTime.date(),
|
||||
if(datetime.isValid() && button->startTime().isValid())
|
||||
eventDateTimeSQL = RDCheckDateTime(QDateTime(datetime.date(),
|
||||
button->startTime()), "yyyy-MM-dd hh:mm:ss");
|
||||
|
||||
sql=QString("insert into `")+panel_svcname+"_SRT` set "+
|
||||
|
Loading…
x
Reference in New Issue
Block a user