app/jquery/jquery-ui.datetimepicker.js
changeset 1462 8686c7223028
parent 1452 2209a6e59870
child 2022 3d84ec6dbd03
--- a/app/jquery/jquery-ui.datetimepicker.js	Sun Feb 22 11:19:29 2009 +0000
+++ b/app/jquery/jquery-ui.datetimepicker.js	Sun Feb 22 11:34:43 2009 +0000
@@ -1502,6 +1502,9 @@
 		}
 		var date = (day ? (typeof day == 'object' ? day : new Date(year, month, day, hour, minute)) :
 			new Date(this._currentYear, this._currentMonth, this._currentDay, this._currentHour, this._currentMinute));
+		
+		if (this._get('pickDateOnly'))
+			return $.datetimepicker.formatDate(this._get('dateFormat'), date, this._getFormatConfig());
 		return $.datetimepicker.formatDate(this._get('dateFormat')+' '+this._get('timeFormat'), date, this._getFormatConfig());
 	}
 });