Fix datetime bug.
Merge pull request #8 from StephaneRob/master

Fix datetime bug.