Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/services/gpo_confirmation_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def make_entry_row(confirmation)
end

def format_date(date)
"#{date.strftime('%-B %-e')}, #{date.year}"
date.in_time_zone('UTC').strftime('%-B %-e, %Y')
end

def current_date
Expand Down
2 changes: 1 addition & 1 deletion spec/services/gpo_confirmation_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
describe '#run' do
before do
allow(IdentityConfig.store).to receive(:usps_confirmation_max_days).and_return(10)
allow(subject).to receive(:current_date).and_return(Time.zone.local(2018, 7, 6))
allow(subject).to receive(:current_date).and_return(Time.utc(2018, 7, 6))
end

it 'creates psv string' do
Expand Down