in reply to DateTime normalize
now() is a class method not a object method. When you call it with,
$result->now()
It assumes $result is the package and looks at it as a string. A DateTime object which is used in a string context returns the date in a iso8601 format(by default).
If you use it as a class method you should not see an error.
my $result = DateTime->now;
|
|---|