Move datetime transform to main adapter