--- parser3/src/classes/date.C 2004/07/28 14:38:20 1.68 +++ parser3/src/classes/date.C 2005/08/05 13:02:56 1.69.6.1 @@ -1,11 +1,11 @@ /** @file Parser: @b date parser class. - Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_DATE_C="$Date: 2004/07/28 14:38:20 $"; +static const char * const IDENT_DATE_C="$Date: 2005/08/05 13:02:56 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -152,8 +152,7 @@ static void _sql_string(Request& r, Meth VDate& vdate=GET_SELF(r, VDate); int size=1+ 4+1+2+1+2 +1+ 2+1+2+1+2 +1 +1; char *buf=new(PointerFreeGC) char[size]; - time_t time=vdate.get_time(); - size=strftime(buf, size, "%Y-%m-%d %H:%M:%S", localtime(&time)); + size=strftime(buf, size, "%Y-%m-%d %H:%M:%S", vdate.get_localtime()); r.write_assign_lang(String(buf, size)); }