Skip to content

Commit

Permalink
WIP fix timezone in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richardTowers committed Jul 3, 2024
1 parent eb70027 commit 1e0301a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/models/dimensions/edition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@
content_id: "the-content-id",
locale: "en",
title: "The Title",
first_published_at: Time.utc(2018, 1, 1).strftime("%Y-%m-%d"),
public_updated_at: Time.utc(2018, 5, 20).strftime("%Y-%m-%d"),
first_published_at: Time.zone.parse("2018-01-01"),
public_updated_at: Time.zone.parse("2018-05-20"),
publishing_app: "publisher",
document_type: "guide",
primary_organisation_title: "The ministry",
Expand Down
4 changes: 2 additions & 2 deletions spec/requests/api/single_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"locale" => "en",
"document_type" => "guide",
"publishing_app" => "whitehall",
"first_published_at" => "2018-07-17T10:35:59.000Z",
"public_updated_at" => "2018-07-17T10:35:57.000Z",
"first_published_at" => "2018-07-17T11:35:59.000+01:00",
"public_updated_at" => "2018-07-17T11:35:57.000+01:00",
"primary_organisation_title" => "The ministry",
"withdrawn" => false,
"historical" => false,
Expand Down

0 comments on commit 1e0301a

Please sign in to comment.