bullcitydave / pett.io

The only pet showcase you'll ever need! (Truly my pet project, until Parse went away, and I, sadly, never migrated it to a vanilla MongoDB with vanilla Backbone)
http://pett.io
2 stars 0 forks source link

Firefox - Life marker doesn't display age #201

Closed bullcitydave closed 9 years ago

bullcitydave commented 9 years ago

Displays default passed away year (2029) instead of age, for living pets

bullcitydave commented 9 years ago

Firefox on OS X not having the issue. Don't know about Firefox on modern Windows, but latest Firefox on Windows XP evaluates the following as false: this.get("dateDeath") == "Mon Dec 31 2029 00:00:00 GMT-0500 (EST)" but it's true on Chrome and Firefox on OS X this.get ("dateDeath") evaluates to "2029-12-31T05:00:00.000Z" and "2029-12-31T05:00:00.000Z" == "Mon Dec 31 2029 00:00:00 GMT-0500 (EST)" never evaluates to true

bullcitydave commented 9 years ago

This appears to do the trick this.get("dateDeath").toISOString() == nullDateDeath.toISOString()