Fix OS dependant test (date format)
(cherry picked from commit b2a4ccc)