date fix for firefox