|
|
| version 1.13, 2001/11/12 10:32:24 | version 1.16, 2002/02/08 08:30:09 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b date parser class. | Parser: @b date parser class. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| $Id$ | $Id$ |
| */ | */ |
| Line 76 static void _sql_string(Request& r, cons | Line 76 static void _sql_string(Request& r, cons |
| int size=1+ 4+1+2+1+2 +1+ 2+1+2+1+2 +1 +1; | int size=1+ 4+1+2+1+2 +1+ 2+1+2+1+2 +1 +1; |
| char *buf=(char *)pool.malloc(size); | char *buf=(char *)pool.malloc(size); |
| time_t time=vdate->get_time(); | time_t time=vdate->get_time(); |
| size=strftime(buf, size, "%Y-%m-%d %H:%M:%S", gmtime(&time)); | size=strftime(buf, size, "%Y-%m-%d %H:%M:%S", localtime(&time)); |
| String& string=*new(pool) String(pool); | String& string=*new(pool) String(pool); |
| string.APPEND_CLEAN(buf, size, | string.APPEND_CLEAN(buf, size, |