Disable automatic Date parsing in HtmlUnit
Posted
by submonoid
on Stack Overflow
See other posts from Stack Overflow
or by submonoid
Published on 2010-06-11T11:08:49Z
Indexed on
2010/06/11
11:12 UTC
Read the original article
Hit count: 324
Having just upgraded to a newer version of HtmlUnit (2.4), I've noticed certain tests are failing when comparing the output of asText
. Looking into the differences, this is because dates (present on the page in the format 11/06/2010 00:00z) are being altered in the output to read 2010-06-11.
Has anybody else encountered this, and can anybody advise how to turn off this (seemingly undocumented) feature of asText
, which seems to go completely against the advised documentation.
© Stack Overflow or respective owner