Replace mktime() with time().