Subject: | $map->add() doesn't accept a DateTime object for lastmod |
If I try to do:
$some_datetime = DateTime->new;
$map->add(url => $some_url, lastmod => $some_datetime);
I get the following error:
Attribute (lastmod) does not pass the type constraint because: Validation
failed for 'Search::Sitemap::Types::SitemapLastMod' with value 2010-06-
28T20:03:29-07:00 at lib/Search/Sitemap.pm line 208