Fixed timezone issue and changed the logic on mail.rake