in reply to Re^2: Error while using "timelocal ()" function.
in thread Error while using "timelocal ()" function.

Have you looked at what value you are passing to timegm()?

Most likely, $mday is empty for some reason, as the error message tells you.