Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
We don't bite newbies here... much
 
PerlMonks  

Re: Strange result for example in Test::Tutorial.

by moot (Chaplain)
on Apr 12, 2005 at 23:39 UTC ( [id://447249]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Strange result for example in Test::Tutorial.

I think you're bumping up against a timezone conversion. Seems that 1.72 at least of Date::ICal uses 'offset', not 'tz' to set the timezone, so it is using $TZ by default.
  • Comment on Re: Strange result for example in Test::Tutorial.

Replies are listed 'Best First'.
Re^2: Strange result for example in Test::Tutorial.
by BioGeek (Hermit) on Apr 12, 2005 at 23:51 UTC
    replacing the string tz => '0530' with eg. offset => '-0800' indeed solves the problem.

    So, what to do best now? Contact the author/maintainer of Test::Tutorial to update the tutorial?
      It couldn't hurt, although it does seem like an odd test case anyway, since it is dependent on an external (to T::Tutorial) module's API.
        There's nothing more frustrating to me than trying to learn something and having the example not work. Either the provided example should work, or the test should be changed to remove the dependency on an external module.

        thor

        Feel the white light, the light within
        Be your own disciple, fan the sparks of will
        For all of us waiting, your kingdom will come

        Update: I wrote an e-mail to Michael, who originally wrote the tutorial, and here's his reply:
        Yes, way down in the footnotes its noted Test::Tutorial is using Date::ICal 1.31 which is horribly out of date. I haven't really touched it in four years. I put up a post on perl-qa to see if anyone wants to take on the job of bringing it up to date.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://447249]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.