Providing a time-limited version for testing certainly is legal. Just make sure your client knows this and it's in the contract. Display a notice like "Note: this beta version of the software will not run after 1-4-2013".
But the concept of a time bomb is that it's hidden and can cause harm at some point.