Commit 5da16998 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(do_create_conf): Use current_time instead of time().

parent e49e1e54
/*
* $Id: conference.c,v 0.46 1999/05/12 13:25:03 byers Exp $
* $Id: conference.c,v 0.47 1999/05/16 21:45:36 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -35,7 +35,7 @@
static const char *
rcsid = "$Id: conference.c,v 0.46 1999/05/12 13:25:03 byers Exp $";
rcsid = "$Id: conference.c,v 0.47 1999/05/16 21:45:36 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -71,6 +71,7 @@ USE(rcsid);
#include "param.h"
#include "aux-items.h"
#include "local-to-global.h"
#include "server-time.h"
BUGDECL;
......@@ -276,7 +277,6 @@ do_create_conf(String name,
{
Conf_no conf_no;
Conference * conf_c;
time_t now;
/* Prepare, then check the aux items */
......@@ -295,9 +295,8 @@ do_create_conf(String name,
restart_kom("create_conf() - can't get conf_stat");
}
now = time(NULL);
conf_c->creator = creator;
conf_c->creation_time = now;
conf_c->creation_time = current_time;
conf_c->presentation= 0; /* No presentation yet */
conf_c->supervisor = supervisor;
conf_c->permitted_submitters = 0;
......@@ -310,7 +309,7 @@ do_create_conf(String name,
conf_c->highest_aux = 0;
conf_c->expire = 0;
prepare_aux_item_list(aux, creator, now);
prepare_aux_item_list(aux, creator);
if (conf_stat_check_add_aux_item_list(conf_c,
conf_no,
aux,
......@@ -1353,7 +1352,7 @@ modify_conf_info(Conf_no conf_no,
/* Check if we may delete and add the items */
prepare_aux_item_list(aux, ACTPERS, time(NULL));
prepare_aux_item_list(aux, ACTPERS);
if (check_delete_aux_item_list(items_to_delete,&conf->aux_item_list)!=OK)
return FAILURE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment