Post by khnaz35 » Thu Jun 03, 2021 10:12 pm

Hello everyone,
OC 3.0.3.5 default theme.

I have done my opencart review export via XML file for GMC review using this feed format.
https://developers.google.com/product-r ... authuser=1
But when out put i am getting time like this :

Code: Select all

<review_timestamp>2021-05-22 15:53:44</review_timestamp>
where else the feed shows it should be
<review_timestamp>2014-04-21T07:07:07Z</review_timestamp>

In my controller i am pulling out like this

Code: Select all

<review_timestamp>'.$review['date_modified'].'</review_timestamp>
Any help is highly appreciated.
Thanks
Last edited by khnaz35 on Fri Jun 04, 2021 8:12 pm, edited 1 time in total.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by straightlight » Thu Jun 03, 2021 10:24 pm


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by khnaz35 » Fri Jun 04, 2021 9:32 am

straightlight wrote:
Thu Jun 03, 2021 10:24 pm
Extension request. https://stackoverflow.com/questions/165 ... ve#tab-top
Hi Straightlight,
Can you guide how to achieve this in OC?

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by ADD Creative » Fri Jun 04, 2021 5:10 pm

Have you tried.

Code: Select all

<review_timestamp>' .  gmdate('Y-m-d\TH:i:s\Z', strtotime($review['date_modified'])) . '</review_timestamp>

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by khnaz35 » Fri Jun 04, 2021 8:11 pm

ADD Creative wrote:
Fri Jun 04, 2021 5:10 pm
Have you tried.

Code: Select all

<review_timestamp>' .  gmdate('Y-m-d\TH:i:s\Z', strtotime($review['date_modified'])) . '</review_timestamp>
Thanks ADD Creative it worked!
So my output is like this now <review_timestamp>2021-05-10T17:08:03M</review_timestamp>

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 94 guests