hello I encounter difficulties to display a date in the correct format in a view.

I souhaire display my dates like this 2009-07-19T03:00:00+01:00

I created a new format here / admin / config / regional / date-time / formats here that Y-m-d\TH:i:sP

Then I created a new type of date and selected my new format. When I go to my view, I select my new date format but the field shows a different format 2016-03-17+01:00 +01:00

So I have a time zone more and I miss the hour, minutes and seconds. Do you have a solution ?

CommentFileSizeAuthor
date4.jpg28.03 KBzenimagine
date3.jpg48.7 KBzenimagine
date2.jpg116.28 KBzenimagine
date1.jpg116.19 KBzenimagine

Comments

domaine created an issue. See original summary.

Subhransu.addweb’s picture

I have setup demo over my local system and result is same as you have debug date module result.
It displays results twice:
1. date
2. timezone

For your solution please apply space before P, like this:- Y-m-d\TH:i:s P

Hope this helps you.

Thanks!

zenimagine’s picture

thank you indeed it removes the second time zone. But I still miss the hour, minutes and seconds. It puts the date at promoting google shopping format and I'm not sure he agrees space

https://support.google.com/merchants/answer/2906014?hl=fr&ref_topic=2877465

mustanggb’s picture

Status: Active » Closed (outdated)

Closing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.