diff options
Diffstat (limited to 'src/mod_offline.erl')
-rw-r--r-- | src/mod_offline.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_offline.erl b/src/mod_offline.erl index 241677b2a..f620e73c5 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -868,10 +868,10 @@ import(LServer, {sql, _}, DBType, <<"spool">>, fxml:get_attr_s(<<"to">>, El#xmlel.attrs)), Stamp = fxml:get_path_s(El, [{elem, <<"delay">>}, {attr, <<"stamp">>}]), - TS = case jlib:datetime_string_to_timestamp(Stamp) of - {MegaSecs, Secs, _} -> - {MegaSecs, Secs, 0}; - undefined -> + TS = try xmpp_util:decode_timestamp(Stamp) of + {MegaSecs, Secs, _} -> + {MegaSecs, Secs, 0} + catch _:_ -> p1_time_compat:timestamp() end, US = {LUser, LServer}, |