Adusts dates for compatibility with Firefox and IE