[Utils][Content] Fix for TCT
authorPawel Kaczmarek <p.kaczmarek3@samsung.com>
Mon, 4 May 2015 09:29:59 +0000 (11:29 +0200)
committerRafal Galka <r.galka@samsung.com>
Mon, 4 May 2015 10:56:46 +0000 (19:56 +0900)
[Verification]
TCT content result:
before: 60.87%
after: 94.35%

Change-Id: Idd319bb9a86dd41c34e87fb454421bf645848c35
Signed-off-by: Pawel Kaczmarek <p.kaczmarek3@samsung.com>
src/utils/utils_api.js

index e87f3f2..e0133b5 100644 (file)
@@ -40,7 +40,7 @@ DateConverter.prototype.toTZDate = function(v, isAllDay) {
 };
 
 DateConverter.prototype.fromTZDate = function(v) {
-  if (!(v instanceof tizen.TZDate)) {
+  if (!tizen.TZDate || !(v instanceof tizen.TZDate)) {
     return v;
   }