Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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

Replies are listed 'Best First'.
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 imbibing at the Monastery: (14)
As of 2016-06-30 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (396 votes). Check out past polls.