Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Weird date format behavior with WWW::Mechanize

by whakka (Hermit)
on Apr 01, 2008 at 21:58 UTC ( #677847=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Weird date format behavior with WWW::Mechanize
in thread Weird date format behavior with WWW::Mechanize

Thanks, I'm impressed. I had never noticed you can look inside the js source code before. I'm still confused about how Mechanize would be getting the munged date but a normal browser wouldn't, but regardless, the solution lies in the formatting.


Comment on Re^4: Weird date format behavior with WWW::Mechanize
Re^5: Weird date format behavior with WWW::Mechanize
by runrig (Abbot) on Apr 01, 2008 at 22:16 UTC
    I'm still confused about how Mechanize would be getting the munged date but a normal browser wouldn't

    Because a browser can run JavaScript, and WWW::Mechanize can't (update: though other modules can, e.g. JavaScript::SpiderMonkey - as suggested by Fletch). Anyway, it's the (JavaScript in the) browser that is munging the date, not WWW::Mech.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://677847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-26 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls