assign message time when it is null