Commit f6bb5387 authored by Frank Bergmann's avatar Frank Bergmann

- added date format support for YYYY-MM-DD

parent 047fac84
Pipeline #105 failed with stages
......@@ -1036,6 +1036,11 @@ ad_proc -public template::widget::date { element_reference tag_attributes } {
set value {}
}
# Deal with standard ]project-open[ date format "YYYY-MM-DD"
if {[regexp {^(....)\-(..)\-(..)$} $value match year month day]} {
set value "$year [template::util::leadingTrim $month] [template::util::leadingTrim $day]"
}
# Keep taking tokens off the top of the string until out
# of tokens
set format_string $element(format)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment