fixed string<->timestamp conversion (try long cast first)