[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kjs
From: Maks Orlovich <maksim () kde ! org>
Date: 2006-11-08 16:30:18
Message-ID: 1163003418.511278.22026.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 603351 by orlovich:
Permit changing the internal value of invalid dates. Fixes the BBC UK Weather page..
BUG:136992
M +6 -6 date_object.cpp
--- branches/KDE/3.5/kdelibs/kjs/date_object.cpp #603350:603351
@@ -417,7 +417,6 @@
case GetSeconds:
case GetMilliSeconds:
case GetTimezoneOffset:
- case SetTime:
case SetMilliSeconds:
case SetSeconds:
case SetMinutes:
@@ -429,6 +428,12 @@
}
}
+ if (id == SetTime) {
+ result = Number(roundValue(exec,args[0]));
+ thisObj.setInternalValue(result);
+ return result;
+ }
+
// check whether time value is outside time_t's usual range
// make the necessary transformations if necessary
int realYearOffset = 0;
@@ -538,11 +543,6 @@
case GetTimezoneOffset:
result = Number(timeZoneOffset(t));
break;
- case SetTime:
- milli = roundValue(exec,args[0]);
- result = Number(milli);
- thisObj.setInternalValue(result);
- break;
case SetMilliSeconds:
fillStructuresUsingTimeArgs(exec, args, 1, &ms, t);
break;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic