[FIX] mail: remove deprecation warning when converting a non Date object into moment