Parse dates into local time

I think this is the last block of code that I need in order to
properly fill out the SQL cache used for scan (which hasn't even been
written yet... :)).