On 14/02/2011 16:10, Mike Blezien wrote:

I have a script that has been generating a strange error that I can't
seem to find the source. In the script, at the top, we have the
following to help trouble shoot it if any errors:

#!/usr/bin/perl
BEGIN { open (STDERR, ">./scriptname_error.log"); }

In the error_log file it generates we keep seeing the following
error:

Invalid offset:

And that's it. Normally it will indicate the line#, date, detailed
error, etc., like in the apache error_log file. but this is all it
shows. This is a cron script also.

Any ideas or help with this error would be much appreciated.

Searching my own Perl libraries, I find that exactly this error would be
produced by a call to DateTime::TimeZone->new with an undefined value
for the 'name' parameter. My version validates the parameters to the
call and produces a more informative error message, but it is very
likely that you have an earlier version that doesn't do that.

HTH,

Rob

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to