I’ve found myself with the same trouble regarding to javascript dates and different browsers. One never gets accustomed to browser weird behaviours…

Here you can find a very nice post talking about this issue and how to avoid it.