diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_mam.erl | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 730b2ba91..b476ff681 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -931,11 +931,6 @@ usec_to_now(Int) -> Sec = Secs rem 1000000, {MSec, Sec, USec}. -now_to_iso({_, _, USec} = Now) -> - DateTime = calendar:now_to_universal_time(Now), - {ISOTimestamp, Zone} = jlib:timestamp_to_iso(DateTime, utc, USec), - <<ISOTimestamp/binary, Zone/binary>>. - datetime_to_now(DateTime, USecs) -> Seconds = calendar:datetime_to_gregorian_seconds(DateTime) - calendar:datetime_to_gregorian_seconds({{1970, 1, 1}, {0, 0, 0}}), |