convert timestamp to string in contrib