Subject: | Cannot parse its own formated datetimes |
See attached test-case.
Basicly, it cannot parse strings that itself has formated, which I find
kind of strange?
Subject: | self_circle.t |
use Test::More tests => 2;
use DateTime::Format::Pg 0.02;
my $ts = "2007-03-10 06:00:00+01";
my $dt = DateTime::Format::Pg->parse_datetime($ts);
my $dt_formated = DateTime::Format::Pg->format_datetime($dt);
is($dt_formated, '2007-03-10 06:00:00+0100', "format ok");
ok(DateTime::Format::Pg->parse_datetime($dt_formated));