You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2014/09/15 15:25:44 UTC

[2/2] git commit: CB-7548 [BlackBerry10] Allow any numeric type as date in dateToString method.

CB-7548 [BlackBerry10] Allow any numeric type as date in dateToString method.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/c4e3eda7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/c4e3eda7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/c4e3eda7

Branch: refs/heads/master
Commit: c4e3eda7db65e3018c40fe103622e5b764139e02
Parents: aa66116
Author: Lianghui Chen <li...@blackberry.com>
Authored: Wed Sep 10 14:36:41 2014 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Mon Sep 15 09:24:55 2014 -0400

----------------------------------------------------------------------
 .../native/device/libGlobalization.so           | Bin 275007 -> 275007 bytes
 .../native/simulator/libGlobalization.so        | Bin 1395543 -> 1395627 bytes
 .../native/src/globalization_ndk.cpp            |   4 ++--
 3 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/c4e3eda7/src/blackberry10/native/device/libGlobalization.so
----------------------------------------------------------------------
diff --git a/src/blackberry10/native/device/libGlobalization.so b/src/blackberry10/native/device/libGlobalization.so
index 3b39fcc..3329b36 100755
Binary files a/src/blackberry10/native/device/libGlobalization.so and b/src/blackberry10/native/device/libGlobalization.so differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/c4e3eda7/src/blackberry10/native/simulator/libGlobalization.so
----------------------------------------------------------------------
diff --git a/src/blackberry10/native/simulator/libGlobalization.so b/src/blackberry10/native/simulator/libGlobalization.so
index 0cdcafb..745135b 100755
Binary files a/src/blackberry10/native/simulator/libGlobalization.so and b/src/blackberry10/native/simulator/libGlobalization.so differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/c4e3eda7/src/blackberry10/native/src/globalization_ndk.cpp
----------------------------------------------------------------------
diff --git a/src/blackberry10/native/src/globalization_ndk.cpp b/src/blackberry10/native/src/globalization_ndk.cpp
index 445d238..8cb4703 100644
--- a/src/blackberry10/native/src/globalization_ndk.cpp
+++ b/src/blackberry10/native/src/globalization_ndk.cpp
@@ -345,8 +345,8 @@ std::string GlobalizationNDK::dateToString(const std::string& args)
         return errorInJson(PARSING_ERROR, "No date provided!");
     }
 
-    if (!date.isDouble()) {
-        slog2f(0, ID_G11N, SLOG2_ERROR, "GlobalizationNDK::dateToString: date is not a Double: %d.",
+    if (!date.isNumeric()) {
+        slog2f(0, ID_G11N, SLOG2_ERROR, "GlobalizationNDK::dateToString: date is not a numeric: %d.",
                 date.type());
         return errorInJson(PARSING_ERROR, "Date in wrong format!");
     }