Default to UTC when no timezone in user settings in recaps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
2ec7457783
commit
b1eeebe05a
@ -96,7 +96,7 @@ defmodule Mobilizon.Service.Workers.SendActivityRecapWorker do
|
|||||||
timezone: timezone
|
timezone: timezone
|
||||||
}
|
}
|
||||||
}) do
|
}) do
|
||||||
is_between_hours(timezone: timezone)
|
is_between_hours(timezone: timezone || "Etc/UTC")
|
||||||
end
|
end
|
||||||
|
|
||||||
# If we're on the first day of the week between notification hours
|
# If we're on the first day of the week between notification hours
|
||||||
@ -107,6 +107,6 @@ defmodule Mobilizon.Service.Workers.SendActivityRecapWorker do
|
|||||||
timezone: timezone
|
timezone: timezone
|
||||||
}
|
}
|
||||||
}) do
|
}) do
|
||||||
is_between_hours_on_first_day(timezone: timezone, locale: locale)
|
is_between_hours_on_first_day(timezone: timezone || "Etc/UTC", locale: locale)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user