Workaround for createFromFormat on PHP > 5.2
Merge pull request #79 from osiux/issue-52

Workaround for createFromFormat on PHP > 5.2

Fixes #52.