Browse files

dateFormat changed to be ISO8601 compliant

  • Loading branch information...
1 parent aaca2f8 commit 2a4924ea36a538f9f9ad24c0bef18dd0fd28add2 @monken committed Sep 12, 2009
Showing with 7 additions and 8 deletions.
  1. +3 −0 Changes
  2. +1 −1 dist.ini
  3. +1 −5 lib/HTML/FormFu/ExtJS.pm
  4. +2 −2 lib/HTML/FormFu/ExtJS/Element/DateTime.pm
View
3 Changes
@@ -1,5 +1,8 @@
Revision history for Perl extension HTML::FormFu::ExtJS.
+0.072 2009-09-12
+ - Changed the default dateFormat to be c (ISO8601)
+
0.071
- Support of custom and remote stores for Select
- Support for custom ExtJS elements through the + prefix
View
2 dist.ini
@@ -1,5 +1,5 @@
name = HTML-FormFu-ExtJS
-version = 0.071
+version = 0.072
author = Moritz Onken <onken@netcubed.de>
license = Perl_5
copyright_holder = Moritz Onken
View
6 lib/HTML/FormFu/ExtJS.pm
@@ -122,7 +122,7 @@ The returned perl object looks something like this:
The C<metaData> property does some kind of magic on the client side. Read L<http://extjs.com/deploy/dev/docs/?class=Ext.data.JsonReader> for more information.
-Sometimes you need to send a different number of results back to the client than there are rows (i.e. paged grid view).
+Sometimes you need to send a different number of results back to the client than there are rows (e. g. paged grid view).
Therefore you can override every item of the perl object by passing a hashref.
$form->grid_data($data, {results => 99});
@@ -834,10 +834,6 @@ Each element in a C<Block> element is rendered normally. The C<tag> config optio
influence. If the C<Block> element contains a C<content> it is rendered like
a L<Src|HTML::FormFu::ExtJS::Element::Src> element.
-=head1 SUBVERSION REPOSITORY
-
-Latest development version is avaiable from L<http://html-formfu.googlecode.com/svn/trunk/HTML-FormFu-ExtJS/>.
-
=head1 TODO
=over
View
4 lib/HTML/FormFu/ExtJS/Element/DateTime.pm
@@ -43,14 +43,14 @@ sub record {
my $class = shift;
my $self = shift;
my $super = $class->SUPER::record($self, @_);
- return {%{$super}, type => "date", dateFormat => 'Y-m-d G:i'}
+ return {%{$super}, type => "date", dateFormat => 'c'}
}
sub column_model {
my $class = shift;
my $self = shift;
my $super = $class->SUPER::column_model($self, @_);
- my $format = $self->attrs->{dateFormat} || $self->attrs_xml->{dateFormat} || 'Y-m-d G:i';
+ my $format = $self->attrs->{dateFormat} || $self->attrs_xml->{dateFormat} || 'c';
return {%{$super}, renderer => \('Ext.util.Format.dateRenderer("'.$format.'")') }
}

0 comments on commit 2a4924e

Please sign in to comment.