change format %J in time and datetime to use always 3 digits