Convert date, times to iso8601 when preparing data for saving

Otherwise we cannot sort by them, as sqlite strtime and
datetime can't parse time strings like 2014-05-19 17:23:18 +0100