mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Fix crash when creating new MUC log file in non-ASCII lang (#3324)
This commit is contained in:
parent
80a502782b
commit
f652f8c8d6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue