HI,

How does XPath Parser handle time zone conversion? I am running into issues as follows:
- One importer uses the standard RSS parser and imports into an event content type which has a date field for event date. The date field is configured to not do any time zone conversion. The imported content shows the time correctly. An event from this feed with date/time Wed, 03 Sep 2014 13:00 PDT imports on that day at 1pm.
- A second importer uses XPath parser to import other events from an XML feed into the same content type. The date field is exactly the same as in the RSS feed (Wed, 03 Sep 2014 13:00 PDT). However, the imported events show a date with a different time (the difference is time zone from feed to GMT, in this case -700), i.e. an event from this feed with date/time Wed, 03 Sep 2014 13:00 PDT imports on that day at 6am.

Does XPath Parser ignore the date field configuration to not do any time zone conversion? If so, I believe this is a significant bug. Or is there a reason it is handled this way and I have to change my configuration?

Thanks, J.

Comments

twistor’s picture

Status: Active » Closed (duplicate)

#722740: Feeds Date mapper converts imported dates to GMT unless in UNIX timestamp format

I'm guessing you're running into this.

Feeds XPath parser doesn't have any knowledge about date time handling.

jelo’s picture

Thanks for pointing me to the other issue. I will comment on that one. I don't think it is an exact duplicate though. What is new here is that I am importing from multiple different feeds into the same content type. All feeds use the same date/time formatting and go into the same entity field. This showed that different parsers in feeds handle this differently. Whereas RSS parser works as expected, XPath does not. My assumption would have been that all parsers would consistently either apply or don't apply time zone conversion...