Skip to content
Snippets Groups Projects
Commit 60b19b97 authored by Gyan Gupta's avatar Gyan Gupta
Browse files

compare datetime till second ignore milliseconds

parent 4de26e97
Branches
No related tags found
2 merge requests!377Fixes for issue 23 and 24 also fixed membership issue,!346Draft: Hyrax 5 - Upgrade hyrax to v5
Pipeline #20502 failed
......@@ -164,6 +164,6 @@ module HyraxHelper
s3.init_client
meta_object = s3.system_metadata_object(work_id)
meta_object.present? and (work.date_modified < DateTime.parse(meta_object.last_modified.to_s))
meta_object.present? and (work.date_modified.to_i <= DateTime.parse(meta_object.last_modified.to_s).to_i)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment