On 17/01/2008, Вячеслав Тихановский <[EMAIL PROTECTED]> wrote:
> Hello.
>
> I wanted to write DateTime element based upon Date, and ran into some
> problems.
> Everything is ok with getting the field values from the form, and
> save_to_model
> also works fine. But when i use get_element('name')->value('12-12-2007 10:10')
> or defaults_from_model everything gets filled except the time param.
>
> Could you please show me where i got an error. Here is my class:I tweaked t/elements/date.t to use Element/DateTime.pm instead - and got lots of errors. I also had to make some changes to Element/Date.pm to get it working, as it was calling some internal subroutines - had to switch them to method calls instead. Attached are the relevant files - can you check if it works as expected? - as I haven't tested it with defaults_from_model() at all. Cheers, Carl
Date.pm
Description: Perl program
DateTime.pm
Description: Perl program
_TimeText.pm
Description: Perl program
datetime.t
Description: Troff document
_______________________________________________ HTML-FormFu mailing list [email protected] http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
