Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 cooling their heels in the Monastery: (18)
As of 2014-10-23 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls