From: pavelpa Date: Thu, 28 Jan 2010 13:41:11 +0000 (+0000) Subject: 'now' events - displayed real now events, not just the testing ones X-Git-Tag: 0.5.0~152 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/ac787b76e213cbb7f0ab6e3d20685a91d125b976 'now' events - displayed real now events, not just the testing ones --- diff --git a/src/mvc/event.cpp b/src/mvc/event.cpp index a65bb4b..fa09ec4 100644 --- a/src/mvc/event.cpp +++ b/src/mvc/event.cpp @@ -56,8 +56,8 @@ QList Event::getByDateAndRoom(const QDate& date, int conferenceId) QList Event::nowEvents(int conferenceId, QString orderBy) { - //uint curTime_t = QDateTime(QDate::currentDate(),QTime::currentTime(),Qt::UTC).toTime_t(); - uint curTime_t = 1265457610; // for testing + uint curTime_t = QDateTime(QDate::currentDate(),QTime::currentTime(),Qt::UTC).toTime_t(); + //uint curTime_t = 1265457610; // for testing QSqlQuery query; query.prepare(selectQuery() + QString("WHERE xid_conference = :conf AND start <= :now1 AND ( start + duration ) > :now2 ORDER BY %1").arg(orderBy));