# frozen_string_literal: true require 'active_support/core_ext/date_and_time/zones' class DateTime # @return [DateTime] def in_utc utc? ? self : in_time_zone('UTC').to_datetime end end require 'active_support/time_with_zone' class Time # @return [Time] def in_utc utc? ? self : in_time_zone('UTC') end end