Live2Dive has asked for the wisdom of the Perl Monks concerning the following question:

Hello all.

I am a newbie at Perl. So new in fact that I just installed it on Friday. I’ve just never needed to use it.

I am an author and have a weblog using Movable Type. My hosting service lost a hard drive and had corrupted a number of my files. I can recover the information using a perl file another MT and Perl wiz created.

When I run it, I get an error:

ERROR: Date::Manip unable to determine TimeZone.
Date::Manip::Date_TimeZone called at c:/perl/lib/date/manip.pm line 661
Date::Manip::Date_init() called at c:/perl/lib/date/manip.pm line 1395
Date::manip::ParseDate(' ') called at mtfix.pl line 40

I think it has to do with a configuration of sorts with Perl and or Manip, but as I said, I am not Perl savvy.

Any thoughts? I hate to muddy this up with a questions that you all have the answer to easily.

Thanks!

2004-10-19 Edited by Arunbear: Changed title from 'TimeZone Help'

  • Comment on ERROR: Date::Manip unable to determine TimeZone

Replies are listed 'Best First'.
Re: ERROR: Date::Manip unable to determine TimeZone
by ikegami (Patriarch) on Oct 18, 2004 at 22:24 UTC
    From Date::Manip docs:

    Date::Manip must be able to determine the timezone the user is in. It does this by looking in the following places:

    $Date::Manip::TZ (set with Date_Init or in Manip.pm) $ENV{TZ} the unix `date` command (if available) $main::TZ /etc/TIMEZONE /etc/timezone

    Before running your script,
    In Windows, do set TZ=...timezone...
    In unix, do export TZ=...timezone...