Merge pull request #3090 from AndrewKvalheim/api-time-zone

Correct time zone of API dates
This commit is contained in:
Henne Vogelsang 2023-04-19 13:36:12 +02:00 committed by GitHub
commit 749115e507
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 7 deletions

View file

@ -11,8 +11,7 @@ class EventSerializer < ActiveModel::Serializer
end
def scheduled_date
t = object.time
t.blank? ? '' : %( #{I18n.l t, format: :short}#{t.formatted_offset(false)} )
object.time&.change(zone: object.program.conference.timezone)
end
def speaker_ids