mcatan      2004/04/05 13:54:16

  Modified:    src      timezone.cpp
  Log:
  fixed daylight management and timezone instanciation
  
  Revision  Changes    Path
  1.2       +2 -2      logging-log4cxx/src/timezone.cpp
  
  Index: timezone.cpp
  ===================================================================
  RCS file: /home/cvs/logging-log4cxx/src/timezone.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- timezone.cpp      2 Apr 2004 08:28:36 -0000       1.1
  +++ timezone.cpp      5 Apr 2004 20:54:16 -0000       1.2
  @@ -81,7 +81,7 @@
   
   TimeZonePtr TimeZone::getTimeZone(const String& ID)
   {
  -     return new TimeZone(_T("ID"));
  +     return new TimeZone(ID);
   }
   
   bool TimeZone::inDaylightTime(int64_t date) const
  @@ -108,7 +108,7 @@
        }
   
        Rule * rule = it->second;
  -     return (date >= rule->startDate && date <= rule->endDate);
  +     return (date >= rule->startDate && date < rule->endDate);
   }
   
   TimeZone::Rule::Rule(int year)
  
  
  

Reply via email to