'now' events - displayed real now events, not just the testing ones
authorpavelpa <pavelpa@localhost>
Thu, 28 Jan 2010 13:41:11 +0000 (13:41 +0000)
committerpavelpa <pavelpa@localhost>
Thu, 28 Jan 2010 13:41:11 +0000 (13:41 +0000)
src/mvc/event.cpp

index a65bb4b..fa09ec4 100644 (file)
@@ -56,8 +56,8 @@ QList<Event> Event::getByDateAndRoom(const QDate& date, int conferenceId)
 
 QList<Event> 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));