Improve date test

Test for the date was local dependent.