Parse the 4th argument into a date.

This commit is contained in:
probablycorey 2014-02-03 12:39:54 -08:00
parent c2afa3521e
commit e7248b486f

View file

@ -5,7 +5,7 @@ AutoUpdater::__proto__ = EventEmitter.prototype
autoUpdater = new AutoUpdater
autoUpdater.on 'update-downloaded-raw', (args...) ->
args[2] = new Date(args[2]) # releaseDate
args[3] = new Date(args[3]) # releaseDate
@emit 'update-downloaded', args..., => @quitAndInstall()
module.exports = autoUpdater