Drupal Converting Time

Computer Guy
Computer Guy used Ask the Experts™

I am going to be using a Feed Importer to import  a JSON feed.

The time field I have access to in my feed is formatted like this: 20151119T120000

I will map this to a date field (popup) and want it to display like such: 11-19-2015 12:00:00 PM - Time Zone does not need conversion.

Currently, the time imports as 7:00
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Drupal Developer and Consultant
Drupal's Date module stores time in UTC. If you are importing a time that's specific to a timezone, you'll need to convert it to UTC before it's stored. The Feeds Tamper module might help with this.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial