Fix invalid date error in Safari

Related to http://stackoverflow.com/q/4310953/3108885.

Fix #4.
Merge pull request #6 from yous/patch-safari-timestamp

Fix invalid date error in Safari