Skip to content

Commit

Permalink
Fix profile update - pass proper 'updated' value
Browse files Browse the repository at this point in the history
Since 62dacc7, the 'updated' field in the profile is a Str
rather than DateTime.

This fixes the validation error when saving a change in the
profile page.
  • Loading branch information
mickeyn committed May 16, 2017
1 parent 8891d68 commit 0f11158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Server/Controller/User.pm
Expand Up @@ -92,7 +92,7 @@ sub profile_PUT {
gravatar_url profile blog
donation city region country
location extra perlmongers);
$profile->{updated} = DateTime->now;
$profile->{updated} = DateTime->now->iso8601;
my @errors = $c->model('CPAN::Author')->new_document->validate($profile);

if (@errors) {
Expand Down

0 comments on commit 0f11158

Please sign in to comment.