Revision history for Perl extension DBIx::Class::DateTime::Epoch.
+0.06 Thu Jan 28 2009
+ - make sure regex for "int" is case insensitive (RT #54053)
+
0.05 Mon Jun 01 2009
[ THING THAT WILL NO LONGER BREAK YOUR CODE ]
- added back-compat for the "epoch => 1", etc syntax
-use inc::Module::Install 0.87;
+use inc::Module::Install 0.92;
if( -e 'MANIFEST.SKIP' ) {
system( 'pod2text lib/DBIx/Class/DateTime/Epoch.pm > README' );
use strict;
use warnings;
-our $VERSION = '0.05';
+our $VERSION = '0.06';
use base qw( DBIx::Class );
sub _inflate_to_datetime {
my( $self, $value, $info, @rest ) = @_;
$self->next::method( $value, $info, @rest )
- unless $info->{ data_type } =~ m{int} || $info->{ inflate_datetime } eq 'epoch';
+ unless $info->{ data_type } =~ m{int}i || $info->{ inflate_datetime } eq 'epoch';
return DateTime->from_epoch( epoch => $value );
}
sub _deflate_from_datetime {
my( $self, $value, $info, @rest ) = @_;
$self->next::method( $value, $info, @rest )
- unless $info->{ data_type } =~ m{int} || $info->{ inflate_datetime } eq 'epoch';
+ unless $info->{ data_type } =~ m{int}i || $info->{ inflate_datetime } eq 'epoch';
return $value->epoch;
}
=over 4
-=item * DBIx::Class
+=item * L<DBIx::Class>
-=item * DBIx::Class::TimeStamp
+=item * L<DBIx::Class::TimeStamp>
-=item * DateTime
+=item * L<DateTime>
=back
=head1 COPYRIGHT AND LICENSE
-Copyright 2006-2009 by Brian Cassidy
+Copyright 2006-2010 by Brian Cassidy
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.