Fix wrong date setting in firefox