Set checkin published_at to UTC time

This commit is contained in:
2023-02-25 14:18:28 +11:00
parent 973ff42344
commit 85b0b7bf5d

View File

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