From: phasefx Date: Mon, 7 Aug 2006 19:50:07 +0000 (+0000) Subject: handle nulls for dates X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7838f7f43d28c144d74fca13a8de67f96805dce5;p=evergreen%2Fpines.git handle nulls for dates git-svn-id: svn://svn.open-ils.org/ILS/trunk@5339 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/date.js b/Open-ILS/xul/staff_client/chrome/content/util/date.js index c955a53c99..bd143f4c2d 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/date.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/date.js @@ -65,6 +65,8 @@ util.date.formatted_date = function (date,format) { } } else if (typeof(date) == 'undefined') { date = new Date( Number( date + '000' ) ); + } else if (date == null) { + return ''; } var mm = date.getMonth() + 1; mm = mm.toString(); if (mm.length == 1) mm = '0' +mm;