From 28ada5359293f0d9e4cba887226214967ef37e16 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 25 Feb 2023 14:26:55 +1100 Subject: [PATCH] Don't change date offset --- lib/adamantium/micropub_request_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adamantium/micropub_request_parser.rb b/lib/adamantium/micropub_request_parser.rb index c63c005..b485e44 100644 --- a/lib/adamantium/micropub_request_parser.rb +++ b/lib/adamantium/micropub_request_parser.rb @@ -99,7 +99,7 @@ module Adamantium new_params[:url] = checkin.dig(:properties, :url)&.first new_params[:slug] = SecureRandom.uuid new_params[:category] = params.dig(:properties, :category) - published = DateTime.parse(params.dig(:properties, :published)&.first).new_offset(0) + published = DateTime.parse(params.dig(:properties, :published)&.first) new_params[:published_at] = published.to_s new_params[:post_type] = :checkin location = params.dig(:properties, :location).first[:properties]