Commit 033ea963 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_output_time): Handle use_utc.

parent ba3357a1
/*
* $Id: prot-a-output.c,v 0.68 2003/08/16 11:28:59 ceder Exp $
* $Id: prot-a-output.c,v 0.69 2003/08/16 17:38:20 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -855,7 +855,10 @@ prot_a_output_time(Connection *fp,
{
struct tm *t;
t = localtime( &clk );
if (fp->use_utc)
t = gmtime(&clk);
else
t = localtime(&clk);
prot_a_output_ul(fp, t->tm_sec);
prot_a_output_ul(fp, t->tm_min);
......
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