properly handle message time