I patched my local copy to show the current date as default in the input box, dunno if people find this useful. If so, I could patch the distriburion version over here too. The change is quite simple, and for general use should probably be conditional on the value in the form (eg, '$current' or something). Here is the line I added:
sub renderFormFieldForEditHandler {
my ( $name, $type, $size, $value, $attributes, $possibleValues ) = @_;
my $calendarOutputFormat = TWiki::Func::getPreferencesValue('DATEFIELDPLUGIN_DATEFORMAT') || '%d %b %Y';
return unless $type eq "date";
+ $value=strftime($calendarOutputFormat,localtime(time));
my $content =
CGI::image_button(
--
KoenMartens - 23 Jun 2006