mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Use correct timestamp when hibernation_time is not set at all
This commit is contained in:
parent
d5841785e1
commit
3520869e36
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ store_room(LServer, Host, Name, Opts, ChangesHints) ->
|
||||||
end,
|
end,
|
||||||
SOpts = misc:term_to_expr(Opts2),
|
SOpts = misc:term_to_expr(Opts2),
|
||||||
Timestamp = case lists:keyfind(hibernation_time, 1, Opts) of
|
Timestamp = case lists:keyfind(hibernation_time, 1, Opts) of
|
||||||
false -> <<"1900-01-01 00:00:00">>;
|
false -> <<"1970-01-02 00:00:00">>;
|
||||||
{_, undefined} -> <<"1970-01-02 00:00:00">>;
|
{_, undefined} -> <<"1970-01-02 00:00:00">>;
|
||||||
{_, Time} -> usec_to_sql_timestamp(Time)
|
{_, Time} -> usec_to_sql_timestamp(Time)
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue