From d73344b5fb0bc0f14b8c9bef191aacaf3a04b2f3 Mon Sep 17 00:00:00 2001 From: Martii Date: Thu, 30 Jul 2015 02:12:40 -0600 Subject: [PATCH] Fix double call of an intermediate that was already defined * Sorry for the extra noise... was tinkering and forgot to back all of the other bells out Enhancement of #460 --- libs/modelParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/modelParser.js b/libs/modelParser.js index 001dad5d3..66190f0ae 100644 --- a/libs/modelParser.js +++ b/libs/modelParser.js @@ -63,7 +63,7 @@ moment.locale('en-tiny', { var parseDateProperty = function (aObj, aKey) { var date = aObj[aKey]; - if (aObj[aKey]) { + if (date) { aObj[aKey + 'ISOFormat'] = date.toISOString(); aObj[aKey + 'Humanized'] = moment(date).locale('en-tiny').calendar(); }