summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormianrui2012-06-14 06:47:18 (EDT)
committer mwu2012-06-14 06:47:18 (EDT)
commitce6cdfead4959676984a094a004cde237e2c6da8 (patch)
tree867096aeefdf73080f46accf389d17a9f9e9708f
parente5e05a6643c99651d87e6b35334e796617d3fe2a (diff)
downloadorg.eclipse.birt-ce6cdfead4959676984a094a004cde237e2c6da8.zip
org.eclipse.birt-ce6cdfead4959676984a094a004cde237e2c6da8.tar.gz
org.eclipse.birt-ce6cdfead4959676984a094a004cde237e2c6da8.tar.bz2
T 49390 support string
-rw-r--r--data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtDateTime.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtDateTime.java b/data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtDateTime.java
index 0a8dc22..16a1478 100644
--- a/data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtDateTime.java
+++ b/data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtDateTime.java
@@ -1379,6 +1379,13 @@ public class BirtDateTime implements IScriptFunctionExecutor
{
return null;
}
+ for ( int i = 0; i < args.length; i++ )
+ {
+ if ( args[i] instanceof String )
+ {
+ args[i]=Double.parseDouble((String) args[i]);
+ }
+ }
if ( args.length == 3 )
return getDate( ( (Number) args[0] ).intValue( ),
( (Number) args[1] ).intValue( ),