Files
mobilizon-frontend/lib/web/templates/email/date/event_tz_date.html.heex
2025-11-29 19:14:29 +01:00

22 lines
635 B
Plaintext

<%= if @event.options.timezone == nil do %>
{@date |> datetime_tz_convert(@timezone) |> datetime_to_string(@locale, :short)}
<% else %>
<strong>
{@date
|> datetime_tz_convert(@event.options.timezone)
|> datetime_to_string(@locale, :short)}
</strong>
<br />
<%= if @event.options.timezone != @timezone do %>
<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>
<% end %>
<% end %>