Index: openacs-4/packages/cms/www/modules/items/attributes-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/items/attributes-oracle.xql,v diff -u -r1.3 -r1.3.2.1 --- openacs-4/packages/cms/www/modules/items/attributes-oracle.xql 16 Nov 2004 22:32:48 -0000 1.3 +++ openacs-4/packages/cms/www/modules/items/attributes-oracle.xql 18 May 2005 15:41:44 -0000 1.3.2.1 @@ -28,7 +28,8 @@ types.table_name, types.id_column, attr.attribute_name, - attr.pretty_name attribute_label + attr.pretty_name attribute_label, + attr.datatype from acs_attributes attr, ( select Index: openacs-4/packages/cms/www/modules/items/attributes-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/items/attributes-postgresql.xql,v diff -u -r1.4 -r1.4.2.1 --- openacs-4/packages/cms/www/modules/items/attributes-postgresql.xql 16 Nov 2004 22:32:48 -0000 1.4 +++ openacs-4/packages/cms/www/modules/items/attributes-postgresql.xql 18 May 2005 15:41:44 -0000 1.4.2.1 @@ -28,7 +28,8 @@ types.table_name, types.id_column, attr.attribute_name, - attr.pretty_name as attribute_label + attr.pretty_name as attribute_label, + attr.datatype from acs_attributes attr, ( select Index: openacs-4/packages/cms/www/modules/items/attributes.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/items/attributes.tcl,v diff -u -r1.11 -r1.11.2.1 --- openacs-4/packages/cms/www/modules/items/attributes.tcl 16 May 2005 03:06:16 -0000 1.11 +++ openacs-4/packages/cms/www/modules/items/attributes.tcl 18 May 2005 15:41:44 -0000 1.11.2.1 @@ -68,6 +68,10 @@ set value "-" } + if { [string match $datatype date] } { + set value [lc_time_fmt $value "%q %r"] + } + set attribute_value [string_truncate $value] }