Skip to content

Commit

Permalink
Merge pull request #39 from alphagov/time
Browse files Browse the repository at this point in the history
Use `Time.parse` for document timestamps
  • Loading branch information
csutter authored Oct 6, 2023
2 parents 5520ba1 + 00895e0 commit 251174d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/document_sync_worker/document/publish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def public_timestamp
def public_timestamp_int
return nil unless public_timestamp

Time.zone.parse(public_timestamp).to_i
Time.parse(public_timestamp).to_i # rubocop:disable Rails/TimeZone (string contains TZ info)
end
end
end
Expand Down

0 comments on commit 251174d

Please sign in to comment.