Fix casting of hstore text to date