--- parser3/src/classes/date.C 2016/07/22 16:53:46 1.104 +++ parser3/src/classes/date.C 2016/10/06 20:38:36 1.106 @@ -13,7 +13,7 @@ #include "pa_vdate.h" #include "pa_vtable.h" -volatile const char * IDENT_DATE_C="$Id: date.C,v 1.104 2016/07/22 16:53:46 moko Exp $" IDENT_PA_VDATE_H; +volatile const char * IDENT_DATE_C="$Id: date.C,v 1.106 2016/10/06 20:38:36 moko Exp $" IDENT_PA_VDATE_H; // class @@ -306,17 +306,17 @@ static void _iso_string(Request& r, Meth if(HashStringValue* options=params.as_hash(0)){ int valid_options=0; if(Value* vshow_ms=options->get("ms")){ - if(r.process_to_value(*vshow_ms).as_bool()) + if(r.process(*vshow_ms).as_bool()) format=VDate::iso_string_type(format|VDate::iso_string_ms); valid_options++; } if(Value* vshow_colon=options->get("colon")){ - if(!r.process_to_value(*vshow_colon).as_bool()) + if(!r.process(*vshow_colon).as_bool()) format=VDate::iso_string_type(format|VDate::iso_string_no_colon); valid_options++; } if(Value* vshow_z=options->get("z")){ - if(!r.process_to_value(*vshow_z).as_bool()) + if(!r.process(*vshow_z).as_bool()) format=VDate::iso_string_type(format|VDate::iso_string_no_z); valid_options++; } @@ -476,7 +476,7 @@ static Table& fill_week_days(Request& r, } static void _calendar(Request& r, MethodParams& params) { - const String& what=params.as_string(0, "format must be strig"); + const String& what=params.as_string(0, "format must be string"); bool rus=false; if(what=="rus") rus=true;