SAFARI - Incorrect date display in variables with CMS

Hi,

In Safari browser, If I pull the date from the collection through variables, with the get date (D M Y) function, the date does not display in all items in the collection.

I want this feature to also work properly in safari browser

1st screen - without date function it’s ok


2nd screen - with date function it’s a bug - “NAN Invalid Date NAN” in 3 from 6 items


Hi, can anyone help me with this topic? This is very important

Hey,

I tried to debug date() function, but I couldn’t make it work on Safari unforunetenly for now.

I tested Moment plugin, and using transform moment directly on date instead of date() function seems to work as well in safari, so I suggest using Moment for all date formating.

I have used this plug-in before and it works. There is only one problem with this plugin, the dates are in English, while the website is in Polish. This will not look professional.

The second problem is that this plug-in does not show hours and minutes as well.

Actually now we managed to fix native date function and tested it in safari, you can use it now… Let me know if it works

1 Like

Great job! Everything works for the moment as far as dates are concerned :wink: