Fix bug where display was not using user preference

This commit is contained in:
Nathan Gray 2011-09-14 00:04:06 +00:00
parent 77f2a043fc
commit 43449a0c24

View File

@ -598,8 +598,7 @@ var et2_date_ro = et2_valueWidget.extend([et2_IDetachedDOM], {
this.date.setTime(parseInt(_value)*1000);
var display = this.date.toString();
// TODO: Use user's preference, not browser's locale
switch(this.type) {
switch(this._type) {
case "date":
display = date(egw.preference('dateformat'), this.date);
break;