Sha256: f12665d2f3929ae2b311dbcc9272408e1e4a22a924293905fa7afa76e1f55144

Contents?: true

Size: 606 Bytes

Versions: 21

Compression:

Stored size: 606 Bytes

Contents

# Copyright 2021 Google LLC
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.

class Meeting < ActiveRecord::Base
  # Returns the meeting time in the local timezone.
  def local_meeting_time
    return unless meeting_time && Time.zone
    meeting_time.in_time_zone Time.zone
  end

  # Returns the time of the meeting in the timezone where the meeting is planned.
  def meeting_time_in_planned_zone
    return unless meeting_time && meeting_timezone
    meeting_time.in_time_zone meeting_timezone
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
activerecord-spanner-adapter-1.6.3 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.6.2 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.6.1 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.6.0 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.5.1 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.5.0 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.4.4 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.4.3 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.4.2 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.4.1 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.4.0 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.3.1 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.2.2 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.2.1 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.2.0 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.1.0 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.0.1 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-1.0.0 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-0.7.0 examples/snippets/timestamp-data-type/models/meeting.rb
activerecord-spanner-adapter-0.6.0 examples/snippets/timestamp-data-type/models/meeting.rb