moxie0 / Convergence

An agile, distributed, and secure alternative to the Certificate Authority system.
http://convergence.io
623 stars 127 forks source link

Fix display of cached fingerprint dates #174

Open mk-fg opened 11 years ago

mk-fg commented 11 years ago

Firefox 19 displays these as "NaN-NaN-NaN NaN:NaN:NaN" because it fails to convert sqlite's int64 to js integer upon instantiation of Date object, producing "Invalid Date" and NaN's for all of its components.

Fix simply adds explicit parseInt() wrapping for timestamp field in query results.