Forum OpenACS Development: template::util::date::get_property returns invalid dates when full date is not specified

In postgresql, at least, inserting '2004' into a date or timestamp column will end up with the value '2004-01-01 00:00:00' being stored in the database.

If the form-builder date datatype is used with the to_sql option set to sql_date or ansi '2004-00-00 00:00:00' is returned. Postgresql does not accept this date.

I want to change the template::util::date::get_property to return 01-01 for missing date elements instead of 00-00.

Any objections? This looks like a small oversight. Am I missing anything here?

No objections.  You might want to do a quick check on Oracle after the fix.