Make date handling Qt 4.6 compatible. Convert dates to local before