problem de afficheur 7segment withe sevnseg

hello
i have probleme withe thise code
void UpdateSegments()
{
short TimeNow = hour()*100 + minute();

// show Hour:Minute

if (TimeNow > 999)
afficheur.println(TimeNow);
else
afficheur.println('0' + (String)TimeNow);

}

at 00:00 heur in lcd is Gives in the big display screen 00
at 00:10 heur in lcd is Gives in the big display screen 0:10
at 01:35 heur in lcd is Gives in the big display screen 01;35
but is normal at time like
at 12:00 heur in lcd is Gives in the big display screen 12;00

try

void UpdateSegments()
{
  int h = hour();
  if (h < 10) afficheur.print('0');
  afficheur.print(h);

  int m = minute();
  if (m < 10) afficheur.print('0');
  afficheur.print(m);

  afficheur.println();
}

thank youu veryyyyyy match