From 87440c72ae0e189417e2566e91c7f39c2f69ee44 Mon Sep 17 00:00:00 2001 From: "mikep%oeone.com" Date: Mon, 26 Aug 2002 18:37:28 +0000 Subject: [PATCH] Fixing bug with date formatting. --- calendar/resources/content/dateUtils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/resources/content/dateUtils.js b/calendar/resources/content/dateUtils.js index 4e96a13e9c2a..08b31ec9cb90 100644 --- a/calendar/resources/content/dateUtils.js +++ b/calendar/resources/content/dateUtils.js @@ -107,9 +107,9 @@ DateFormater.prototype.getFormatedDate = function( date ) try { if( this.CalendarWindow.calendarPreferences.getPref( "dateformat" ) == 0 ) - this.getLongFormatedDate( Date ); + return( this.getLongFormatedDate( date ) ); else - this.getShortFormatedDate( Date ); + return( this.getShortFormatedDate( date ) ); } catch(ex) { @@ -121,7 +121,7 @@ DateFormater.prototype.getLongFormatedDate = function( date ) { if( (navigator.platform.indexOf("Win") == 0) || (navigator.platform.indexOf("Mac") != -1) ) { - dateService.FormatDate( "", dateService.dateFormatLong, date.getFullYear(), date.getMonth()+1, date.getDate() ) + return( dateService.FormatDate( "", dateService.dateFormatLong, date.getFullYear(), date.getMonth()+1, date.getDate() ) ); } else {