ts is milli seconds
Merge branch 'master' of https://github.com/bearyinnovative/ejabberd