mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix crash when creating new MUC log file in non-ASCII lang (#3324)
This commit is contained in:
parent
80a502782b
commit
f652f8c8d6
@ -488,7 +488,7 @@ get_dateweek(Date, Lang) ->
|
||||
11 -> tr(Lang, ?T("November"));
|
||||
12 -> tr(Lang, ?T("December"))
|
||||
end,
|
||||
list_to_binary(
|
||||
unicode:characters_to_binary(
|
||||
case Lang of
|
||||
<<"en">> ->
|
||||
io_lib:format("~ts, ~ts ~w, ~w", [Weekday, Month, D, Y]);
|
||||
|
Loading…
Reference in New Issue
Block a user