Convert date back to a string

This commit is contained in:
2023-02-25 14:21:14 +11:00
parent 85b0b7bf5d
commit 730c84057a

View File

@@ -100,7 +100,7 @@ module Adamantium
new_params[:slug] = SecureRandom.uuid
new_params[:category] = params.dig(:properties, :category)
published = DateTime.parse(params.dig(:properties, :published)&.first).new_offset(0)
new_params[:published_at] = published
new_params[:published_at] = published.to_s
new_params[:post_type] = :checkin
location = params.dig(:properties, :location).first[:properties]
new_params[:photos] = []