db2_local: replace timelocal() with mktime()