[webkit-changes] cvs commit: JavaScriptCore/kjs date_object.cpp

Timothy thatcher at opensource.apple.com
Tue Sep 27 16:41:04 PDT 2005


thatcher    05/09/27 16:41:04

  Modified:    .        Tag: Safari-2-0-branch ChangeLog
               kjs      Tag: Safari-2-0-branch date_object.cpp
  Log:
      2005-09-26  Geoffrey Garen  <ggaren at apple.com>
  
          - Fixed <rdar://problem/4244084> Denver Regression: Date.setUTCFullYear() broken
  
          Reviewed by John.
  
          * kjs/date_object.cpp:
          (KJS::makeTime): Changed to use localtime_r to avoid blowing away the results from
          a previous call to localtime farther up the stack.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.677.6.38 +12 -0     JavaScriptCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/ChangeLog,v
  retrieving revision 1.677.6.37
  retrieving revision 1.677.6.38
  diff -u -r1.677.6.37 -r1.677.6.38
  --- ChangeLog	22 Sep 2005 19:28:02 -0000	1.677.6.37
  +++ ChangeLog	27 Sep 2005 23:41:01 -0000	1.677.6.38
  @@ -1,3 +1,15 @@
  +2005-09-27  Timothy Hatcher  <timothy at apple.com>
  +
  +    2005-09-26  Geoffrey Garen  <ggaren at apple.com>
  +
  +        - Fixed <rdar://problem/4244084> Denver Regression: Date.setUTCFullYear() broken
  +
  +        Reviewed by John.
  +
  +        * kjs/date_object.cpp:
  +        (KJS::makeTime): Changed to use localtime_r to avoid blowing away the results from
  +        a previous call to localtime farther up the stack.
  +
   2005-09-22  Timothy Hatcher  <timothy at apple.com>
   
           - Fixed <rdar://problem/4263434> <rdar://problem/4263434> Denver 8F29 Regression:
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.39.8.2  +5 -4      JavaScriptCore/kjs/date_object.cpp
  
  Index: date_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/date_object.cpp,v
  retrieving revision 1.39.8.1
  retrieving revision 1.39.8.2
  diff -u -r1.39.8.1 -r1.39.8.2
  --- date_object.cpp	9 Aug 2005 00:29:23 -0000	1.39.8.1
  +++ date_object.cpp	27 Sep 2005 23:41:03 -0000	1.39.8.2
  @@ -960,11 +960,12 @@
   {
       int utcOffset;
       if (utc) {
  -	time_t zero = 0;
  +        time_t zero = 0;
   #if defined BSD || defined(__linux__) || defined(__APPLE__)
  -	struct tm *t3 = localtime(&zero);
  -        utcOffset = t3->tm_gmtoff;
  -        t->tm_isdst = t3->tm_isdst;
  +        struct tm t3;
  +        localtime_r(&zero, &t3);
  +        utcOffset = t3.tm_gmtoff;
  +        t->tm_isdst = t3.tm_isdst;
   #else
           (void)localtime(&zero);
   #  if defined(__BORLANDC__) || defined(__CYGWIN__)
  
  
  



More information about the webkit-changes mailing list