Commit ba8d8004 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(get_last_text): Handle use_utc.

parent 64f1a31a
/*
* $Id: text.c,v 0.111 2003/08/16 15:32:33 ceder Exp $
* $Id: text.c,v 0.112 2003/08/16 17:37:18 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -2590,7 +2590,10 @@ get_last_text(struct tm *wanted_time,
higher = middle - 1;
else
{
texttime = localtime(&text_stat->creation_time);
if (active_connection->use_utc)
texttime = gmtime(&text_stat->creation_time);
else
texttime = localtime(&text_stat->creation_time);
if (greater(wanted_time, texttime))
lower = try - 1;
else
......
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