tags:

views:

34

answers:

1

I'm using HTML::TokeParser to parse a website for a particular field. The field looks as follows

09/23/10 - 12:14 PM EDT

However, when I print whatever is received, It displays,

2010-09-23 12:14:32.0

Why the inconsistency? Is it recognizing it as a time parameter and converting it to some internal format? If so how can I read it as a string?

+2  A: 

Would it be possible that the value HTML::TokeParser gives you is actually the date that's in the website's HTML, but the website also has some javascript to convert the date into your local timezone?

rafl