Skip to content

Commit

Permalink
Fix AtomFeed date generation
Browse files Browse the repository at this point in the history
  • Loading branch information
genehack committed Apr 14, 2015
1 parent b19cf4c commit 8152ae7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Revision history for {{$dist->name}}

{{$NEXT}}

Fix AtomFeed date generation

1.95 2015-04-09 11:47:19-07:00 America/Los_Angeles

Fix encoding issues with AtomFeed plugin
Expand Down
2 changes: 1 addition & 1 deletion lib/HiD/Generator/AtomFeed.pm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ sub _new_entry {
$entry->author($post->author);
$entry->link($post->url);
$entry->id($post->baseurl . $post->url);
$entry->updated($post->date);
$entry->modified($post->date);
$entry->summary($post->description) if $post->description;
$entry->content($post->converted_content);

Expand Down
7 changes: 4 additions & 3 deletions lib/HiD/Role/IsPost.pm
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ has date => (
( $year , $month , $day ) = $self->input_filename
=~ m|^.*?/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})-|;
return DateTime->new(
year => $year ,
month => $month ,
day => $day
year => $year ,
month => $month ,
day => $day ,
time_zone => 'UTC' ,
);
}
},
Expand Down

0 comments on commit 8152ae7

Please sign in to comment.