SharPoint Seach Result date column gives NaN-NaN-NaN

Brass Contributor

Hello there,

 

I have an SP site with 3 documentlibraries. At my home page i make use of the standard search results web part. I connected that webpart to the 3 document libraries (with a contenttype used in all 3).

 

In de standard colum "last modified" i manually select the date column LastModified. But than in my view i get a NaN-NaN-Nan message. After 1 day (suspected the full crawl, its a SPO enviroment) the date is show in most of the cases, but not all!

 

See the attachment for more info.

 

Does anyone know what the issue is here? i dont want to wait 1 day before i see the correct day. I dont want the NaN-NaN-Nan message, my clients wont like that.

 

Thanks in advance!

  

2 Replies

Full crawling is not the issue because Crawls are continuous in SPO, that looks like a bug to me, I would open a support ticket with MS.

HI @Rob Giesen,

 

This is a bug in the display template that is being used. Are you using custom display templates or  one of the out of the box ones?

 

The problem here is that there will be some javascript reading an invalid date. Ideally the scripts should handle the invalid that and that is exactly what it is doing. Unfortunately it does this as NaN. Of course this isn't very friendly. 

 

Could you have a look at the document in question and see what the modification date is? 

 

Also can you post which templates you are using? My guess is that the item template has something wrong with it. Finally it could be the managed property that is used for the Modification date. Have any changes been made to the managed property?