From ac787b76e213cbb7f0ab6e3d20685a91d125b976 Mon Sep 17 00:00:00 2001 From: pavelpa Date: Thu, 28 Jan 2010 13:41:11 +0000 Subject: [PATCH 1/1] 'now' events - displayed real now events, not just the testing ones --- src/mvc/event.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.30.2