Index: openacs-4/packages/acs-templating/tcl/date-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/date-procs.tcl,v diff -u -N -r1.48.4.2 -r1.48.4.3 --- openacs-4/packages/acs-templating/tcl/date-procs.tcl 5 Oct 2013 12:55:09 -0000 1.48.4.2 +++ openacs-4/packages/acs-templating/tcl/date-procs.tcl 10 Oct 2013 21:20:10 -0000 1.48.4.3 @@ -473,7 +473,7 @@ # robustness check: make sure we handle form of 08:00am --jfr regexp {0([0-9])} $hours match trimmed_hours - if {[exists_and_not_null trimmed_hours]} { + if {([info exists trimmed_hours] && $trimmed_hours ne "")} { set hours $trimmed_hours } @@ -882,7 +882,7 @@ set interval $element(${fragment}_interval) } else { # Display text entry for some elements, or if the type is text - if { $type eq "t" || + if { $type == "t" || [regexp "year|short_year" $fragment] } { set output "" append output [template::util::date::monthName $value $size] } @@ -1056,7 +1056,7 @@ set fragment_def $template::util::date::fragment_widgets([string toupper $token]) set fragment [lindex $fragment_def 1] - if {[exists_and_not_null id_attr_name]} { + if {([info exists id_attr_name] && $id_attr_name ne "")} { set attributes(id) "${id_attr_name}.${fragment}" }