2021-10-15 15:58:49 +02:00
|
|
|
<%= if @event.options.timezone == nil do %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<%= @date |> datetime_tz_convert(@timezone) |> datetime_to_string(@locale, :short) %>
|
2021-10-15 15:58:49 +02:00
|
|
|
<% else %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<strong>
|
|
|
|
<%= @date
|
|
|
|
|> datetime_tz_convert(@event.options.timezone)
|
|
|
|
|> datetime_to_string(@locale, :short) %>
|
|
|
|
</strong>
|
|
|
|
<br />
|
2021-10-15 15:58:49 +02:00
|
|
|
<%= if @event.options.timezone != @timezone do %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<span style="font-size: 13px;">
|
|
|
|
<%= gettext("🌐 %{timezone} %{offset}",
|
|
|
|
timezone: @event.options.timezone,
|
|
|
|
offset:
|
|
|
|
@date
|
|
|
|
|> datetime_tz_convert(@event.options.timezone)
|
|
|
|
|> Cldr.DateTime.Formatter.zone_gmt()
|
|
|
|
) %>
|
|
|
|
</span>
|
2021-10-15 15:58:49 +02:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|