perche' a mktime non interessa la data come passi tu:

1989-08-18 00:00:00

ma verrebbe ricevere:

mktime(0, 0, 0, 8, 18, 1989)