From 7838f7f43d28c144d74fca13a8de67f96805dce5 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 7 Aug 2006 19:50:07 +0000 Subject: [PATCH] handle nulls for dates git-svn-id: svn://svn.open-ils.org/ILS/trunk@5339 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/date.js | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.11.0