From 6a900050a3321dff55092f707ebd9bf1e15a0efb Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Mon, 6 May 2024 21:37:48 +0200 Subject: [PATCH] Correcting pubdate out new. --- lib/GTSRSSApi.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/GTSRSSApi.pm b/lib/GTSRSSApi.pm index badb4ef..c89d3c5 100644 --- a/lib/GTSRSSApi.pm +++ b/lib/GTSRSSApi.pm @@ -357,7 +357,7 @@ EOF my $is_shiny = $pokemon->{is_shiny}; my $has_pokerus = $pokemon->{has_pokerus}; my $pg_date = $pokemon->{date}; - my $date = DateTime->now() . ''; + my $date = DateTime->now(); my $held_item = $pokemon->{held_item}; my $wanted_species = $pokemon->{wanted_species}; my $requirements = $pokemon->{wanted_requirements}; @@ -395,7 +395,7 @@ EOF my $uuid = create_uuid_string; $db->do( $query_create_news, undef, $uuid, - $pg_date, $offerer, $species, + $pg_date_formatter->format_datetime($date), $offerer, $species, $is_shiny, $has_pokerus, $line, $held_item, );