stayradiated/Nitro — pull request #147 by mlms13 (2012-08-06 12:58:14+00:00)
Title: Prevent a task's date from being set to NaN

If you manually enter a date and `Date.parse()` doesn't understand it, it returns `NaN`, which gets saved in the database. Then, when you next start Nitro, `NaN` dates get converted to `0` (maybe by the cleanDB plugin?), which is actually a valid date. So tasks that should have no date at all actually show up in in the "Today" list. This commit fixes that by falling back to an empty string if `Date.parse()` doesn't understand the input.