summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Chmielowski <pawel@process-one.net>2022-03-07 17:38:04 +0100
committerPaweł Chmielowski <pawel@process-one.net>2022-03-07 17:38:04 +0100
commit3520869e36bb9fd568450a7283155e39c3d54dd4 (patch)
treea8523fa7d3a117ff6e11c8059312a7f5ae84dd5f /src
parentDon't request the whole MUC room state in get_room_occupants_number command (... (diff)
Use correct timestamp when hibernation_time is not set at all
Diffstat (limited to 'src')
-rw-r--r--src/mod_muc_sql.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc_sql.erl b/src/mod_muc_sql.erl
index a6a5c090..3fed0bf2 100644
--- a/src/mod_muc_sql.erl
+++ b/src/mod_muc_sql.erl
@@ -66,7 +66,7 @@ store_room(LServer, Host, Name, Opts, ChangesHints) ->
end,
SOpts = misc:term_to_expr(Opts2),
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">>;
{_, Time} -> usec_to_sql_timestamp(Time)
end,