Diff for /parser3/src/classes/date.C between versions 1.56 and 1.58

version 1.56, 2003/11/20 17:09:35 version 1.58, 2003/11/27 10:20:32
Line 261  static Table& fill_month_days(Request& r Line 261  static Table& fill_month_days(Request& r
         memset(&tmIn, 0, sizeof(tmIn));           memset(&tmIn, 0, sizeof(tmIn)); 
         tmIn.tm_mday=1;          tmIn.tm_mday=1;
         tmIn.tm_mon=month;           tmIn.tm_mon=month; 
         tmIn.tm_yday=year-1900;          tmIn.tm_year=year-1900;
   
         time_t t=mktime(&tmIn);          time_t t=mktime(&tmIn);
         if(t<0)          if(t<0)
Line 291  static Table& fill_month_days(Request& r Line 291  static Table& fill_month_days(Request& r
                         *row+=cell;                                      *row+=cell;            
   
                         if(wday==(rus?3:4)/*thursday*/) {                          if(wday==(rus?3:4)/*thursday*/) {
                                 tm tms={0,0,0,  _day, month, year-1900};                                  tm tms;
                                   memset(&tms, 0, sizeof(tmIn)); 
                                   tms.tm_mday=_day;
                                   tms.tm_mon=month; 
                                   tms.tm_year=year-1900;
                                   
                                 /*normalize*/mktime(&tms);                                  /*normalize*/mktime(&tms);
   
                                 weekyear=tms.tm_year+1900;                                  weekyear=tms.tm_year+1900;
Line 336  static Table& fill_week_days(Request& r, Line 341  static Table& fill_week_days(Request& r,
         tmIn.tm_hour=18;          tmIn.tm_hour=18;
         tmIn.tm_mday=day;          tmIn.tm_mday=day;
         tmIn.tm_mon=month;           tmIn.tm_mon=month; 
         tmIn.tm_yday=year-1900;          tmIn.tm_year=year-1900;
                                   
         time_t t=mktime(&tmIn);          time_t t=mktime(&tmIn);
         if(t<0)          if(t<0)

Removed from v.1.56  
changed lines
  Added in v.1.58


E-mail: