From 85da128bffd6d382788805b4ea44f2c257f537fc Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 13 Oct 2014 20:22:35 +0200 Subject: [PATCH] Fix participant last_activity --- vroom.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vroom.pl b/vroom.pl index 887636b..7e09d59 100755 --- a/vroom.pl +++ b/vroom.pl @@ -326,9 +326,9 @@ helper add_participant => sub { my $sth = eval { $self->db->prepare('INSERT IGNORE INTO `participants` (`room_id`,`participant`,`last_activity`) - VALUES (?,?,?)'); + VALUES (?,?,CONVERT_TZ(NOW(), @@session.time_zone, \'+00:00\'))'); } || return undef; - $sth->execute($room->{id},$participant,time()) || return undef; + $sth->execute($room->{id},$participant) || return undef; $self->app->log->info($self->session('name') . " joined the room $name"); return 1; };