--- parser3/src/classes/date.C 2002/02/18 12:13:42 1.17 +++ parser3/src/classes/date.C 2002/03/26 08:51:00 1.20 @@ -4,7 +4,7 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: date.C,v 1.17 2002/02/18 12:13:42 paf Exp $ + $Id: date.C,v 1.20 2002/03/26 08:51:00 paf Exp $ */ #include "classes.h" @@ -130,6 +130,7 @@ static void _roll(Request& r, const Stri tmOut->tm_hour=tmSaved.tm_hour; tmOut->tm_min=tmSaved.tm_min; tmOut->tm_sec=tmSaved.tm_sec; + tmOut->tm_isdst=-1; { time_t t=mktime(tmOut); if(t<0) @@ -183,6 +184,10 @@ static Table *fill_week_days(Request& r, const String& method_name, MethodParams *params, bool rus){ Pool& pool=r.pool(); Array& columns=*new(pool) Array(pool, 4); + columns+=new(pool) String(pool, "year"); + columns+=new(pool) String(pool, "month"); + columns+=new(pool) String(pool, "day"); + columns+=new(pool) String(pool, "weekday"); Table *result=new(pool) Table(pool, &method_name, &columns); int year=params->as_int(1, "year must be int", r);