[webkit-changes] cvs commit: JavaScriptCore/kjs date_object.cpp
Timothy
thatcher at opensource.apple.com
Tue Sep 27 16:39:05 PDT 2005
thatcher 05/09/27 16:39:05
Modified: . Tag: Safari-Den-branch ChangeLog
kjs Tag: Safari-Den-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.34.2.6 +12 -0 JavaScriptCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/JavaScriptCore/ChangeLog,v
retrieving revision 1.677.6.34.2.5
retrieving revision 1.677.6.34.2.6
diff -u -r1.677.6.34.2.5 -r1.677.6.34.2.6
--- ChangeLog 22 Sep 2005 23:33:23 -0000 1.677.6.34.2.5
+++ ChangeLog 27 Sep 2005 23:39:02 -0000 1.677.6.34.2.6
@@ -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.
+
=== JavaScriptCore-416.9 ===
2005-09-22 Timothy Hatcher <timothy at apple.com>
No revision
No revision
1.39.8.1.2.1 +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.1.2.1
diff -u -r1.39.8.1 -r1.39.8.1.2.1
--- date_object.cpp 9 Aug 2005 00:29:23 -0000 1.39.8.1
+++ date_object.cpp 27 Sep 2005 23:39:05 -0000 1.39.8.1.2.1
@@ -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