xp-framework/xp-framework — pull request #88 by cconstandachi (2011-12-15 16:10:14+00:00)
Title: Date::now() can accept TimeZone, Date::create() will throw exception for invalid arguments.

Hi,

This pull request fix the following things:

1. Date::now() can accept TimeZone at creation time
2. Fix bug in Date::create()
- the date was created if no arguments was passed ( with the value of Date::now())
This is misleading because you can use the Date::create() with arguments and expect an error if the values are not valid.
On the second point, maybe this was the desired intent.

All the test passed and I added a few for the modification.

What do you think ?

Have a nice day,
Cosmin