summaryrefslogtreecommitdiff
path: root/GroLUG/lib/GroLUG/M/DB/Pagamento.pm
diff options
context:
space:
mode:
Diffstat (limited to 'GroLUG/lib/GroLUG/M/DB/Pagamento.pm')
-rw-r--r--GroLUG/lib/GroLUG/M/DB/Pagamento.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/GroLUG/lib/GroLUG/M/DB/Pagamento.pm b/GroLUG/lib/GroLUG/M/DB/Pagamento.pm
index 23ee176..7c6f939 100644
--- a/GroLUG/lib/GroLUG/M/DB/Pagamento.pm
+++ b/GroLUG/lib/GroLUG/M/DB/Pagamento.pm
@@ -12,8 +12,8 @@ for my $col (qw(data_pagamento data_iscrizione data_scadenza)) {
__PACKAGE__->inflate_column(
$col,
{
- inflate => sub { DateTime::Format::Pg->parse_datetime(shift) },
- deflate => sub { DateTime::Format::Pg->format_datetime(shift) },
+ inflate => sub { DateTime::Format::Pg->parse_date(shift) },
+ deflate => sub { DateTime::Format::Pg->format_date(shift) },
});
}