Skip to content

Commit

Permalink
Merge pull request #373 from wearefuturegov/TOP-250-one-off-event-dat…
Browse files Browse the repository at this point in the history
…es-not-showing-in-scout

TOP-250 one off events not showing date 🤦‍♀️
  • Loading branch information
apricot13 authored Sep 26, 2024
2 parents 04f91c5 + 8b58f04 commit 9e13a41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.7"
services:
outpost-api-service:
image: ghcr.io/wearefuturegov/outpost-api-service:latest
platform: linux/arm64
platform: linux/amd64
environment:
NODE_ENV: development
FORCE_SSL: false
Expand Down
2 changes: 1 addition & 1 deletion app/models/regular_schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def description
"Every #{month}#{day} from #{dtstart.strftime("%d/%m/%Y")} at #{opens_at.strftime("%I:%M%P")} to #{closes_at.strftime("%I:%M%P")}#{ends}"
end
else
"#{dtstart.strftime('%A')} from #{opens_at.strftime("%I:%M%P")} to #{closes_at.strftime("%I:%M%P")}"
"#{dtstart.strftime('%A%e %B %Y')} from #{opens_at.strftime("%I:%M%P")} to #{closes_at.strftime("%I:%M%P")}"
end
else
# opening time
Expand Down
2 changes: 1 addition & 1 deletion spec/models/regular_schedule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@
let(:dtstart) { DateTime.new(2023, 10, 4) } # Wednesday
context 'single event time' do
it 'should return description of the single event time' do
expect(regular_schedule.description).to eq("Wednesday from #{opens_at.strftime("%I:%M%P")} to #{closes_at.strftime("%I:%M%P")}")
expect(regular_schedule.description).to eq("#{dtstart.strftime('%A%e %B %Y')} from #{opens_at.strftime("%I:%M%P")} to #{closes_at.strftime("%I:%M%P")}")
end
end

Expand Down

0 comments on commit 9e13a41

Please sign in to comment.