diff --git a/app/presenters/content_item/manual_updates.rb b/app/presenters/content_item/manual_updates.rb index bbd959ba6..4605a3905 100644 --- a/app/presenters/content_item/manual_updates.rb +++ b/app/presenters/content_item/manual_updates.rb @@ -28,7 +28,7 @@ def change_notes end def updated_at(published_at) - Date.parse(published_at) + Time.zone.parse(published_at).to_date end def group_updates_by_year(updates) diff --git a/test/presenters/content_item/manual_updates_test.rb b/test/presenters/content_item/manual_updates_test.rb index 1f405e8a2..e4f908d3f 100644 --- a/test/presenters/content_item/manual_updates_test.rb +++ b/test/presenters/content_item/manual_updates_test.rb @@ -22,7 +22,7 @@ def initialize "base_path" => "/guidance/content-design/content-policy", "title" => "Content policy", "change_note" => "New section added.", - "published_at" => "2014-10-06T23:49:25Z", + "published_at" => "2014-10-06T22:49:25Z", }, { "base_path" => "/guidance/content-design/user-needs", @@ -34,7 +34,7 @@ def initialize "base_path" => "/guidance/content-design/random-section", "title" => "Random section", "change_note" => "New section added.", - "published_at" => "2013-11-06T10:49:25Z", + "published_at" => "2013-09-06T23:49:25Z", }, ], }, @@ -88,7 +88,7 @@ def initialize 2013, [ [ - "6 November 2013 #{I18n.t('manuals.updates_amendments')}", + "7 September 2013 #{I18n.t('manuals.updates_amendments')}", { (fourth_note["base_path"]).to_s => [fourth_note], },