--- parser3/src/classes/date.C 2004/07/28 14:38:20 1.68 +++ parser3/src/classes/date.C 2005/08/09 08:14:47 1.71 @@ -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/09 08:14:47 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -19,7 +19,7 @@ static const char * const IDENT_DATE_C=" class MDate: public Methoded { public: // VStateless_class - Value* create_new_value(Pool&) { return new VDate(0); } + Value* create_new_value(Pool&, HashStringValue&) { return new VDate(0); } public: MDate(); @@ -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)); }