sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

display of date-values changes within JSON formatted view

Open MSFT-klpinhac opened this issue 1 year ago • 8 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

Declarative list formatting

Developer environment

None

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [X] 💥 Microsoft Edge
  • [ ] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

No response

Describe the bug / error

The formatting of the date-values used as categories / groups changes, from "YYYY-MM-DD" to "MM/DD/YYYY hh:mm"

Steps to reproduce

a custom SharePoint-List with data from an RSS-Feed has been created, with the following columns: image The view of the SharePoint-List has been grouped by the field "pubDate": image

The display of a SharePoint-List with has been customized using the JSON available at: https://github.com/pnp/list-formatting/tree/master/view-samples/faq-accordion Please note: only the reference of the field "Answer" has been updated to field "Title", no other changes have been made image

If you expand a group / date in the view, the entries within that group ( i.e. from that date) become visible image if you scroll up, expand a second group / date above the first expanded group and collapse that second group / date again, then the date-value of the first group is displayed in a different way: image

In the console of Microsoft Edge Version 128.0.2739.42 (Official build) (64-bit), no error shows up.

Expected behavior

The formatting of the date-values used as categories / groups should NOT change

MSFT-klpinhac avatar Sep 02 '24 09:09 MSFT-klpinhac

@MSFT-klpinhac What are the settings of the PubDate column? Can you please add a screenshot of the Edit column panel?

arkogupta avatar Sep 06 '24 08:09 arkogupta

Also, could you please check your build number using _spModuleLink.buildNumber on the dev tools console?

arkogupta avatar Sep 06 '24 09:09 arkogupta

Here is the screenshot of the settings of the "pubDate" column: Screenshot pubdate The "Column Validation" is empty ( i have not included that into the screenshot, so that the screenshot is not oversized ) nothing special, i think

MSFT-klpinhac avatar Sep 06 '24 09:09 MSFT-klpinhac

_spModuleLink.buildNumber

image

i hope this helps!

MSFT-klpinhac avatar Sep 06 '24 09:09 MSFT-klpinhac

@MSFT-klpinhac Is it possible for you to share a sample list with credentials? If not, could you create a new empty list from the existing list and share the csv file using "Export to csv with schema" ?

arkogupta avatar Sep 18 '24 10:09 arkogupta

i think i used this file to create the list, @arkogupta RSSExport_20240826.xlsx the data has been collected from a public german news rss-feed. Maybe you want to delete a few rows to stay below 5000 elements in the SharePoint List

MSFT-klpinhac avatar Sep 19 '24 09:09 MSFT-klpinhac

@MSFT-klpinhac Thanks for sharing the excel. I am able to repro now. It only seems to occur when the groups are collapsed by default. Working on a fix rn.

arkogupta avatar Sep 24 '24 12:09 arkogupta

@MSFT-klpinhac The fix ha been merged and should reach you in the week of 7th October.

arkogupta avatar Sep 27 '24 05:09 arkogupta

Hello @MSFT-klpinhac , Thank you for your patience. Is the issue resolved now?

Amey-MSFT avatar Apr 09 '25 05:04 Amey-MSFT

We are closing this issue for now. If the problem persists, feel free to reopen it or open a new one.

Amey-MSFT avatar Jul 07 '25 10:07 Amey-MSFT