Also try with YYYY maybe it is 01 instead of 2001:
select to_char(NEXT_RETRY,'YYYY-MM-DD HH24:MI:SS') from git_retry;