0

Using Sitecore 9.1.1 with SXA 1.8.1.

I have a rendering variant which outputs a date field in a particular date format. When my first field being evaluated is empty then the fallback value displays in the selected format. However if my first field has a value then it displays it in the format "8/29/2019 12:00:00 AM". The same date format selection was made in both fields.

My rendering variant: enter image description here

My template - both are date fields, the only difference being the Published date gets a default of now. enter image description here

Reviewed output:

enter image description here

vs my Published fallback:

enter image description here

3
  • Double-check if everything is published. Aug 29, 2019 at 8:54
  • @DawidRutkowski I did jump into the web database and everything seemed to be there. I was kind of hoping the date format string hadn't been published for an easy explanation :)
    – Jen
    Aug 30, 2019 at 6:05
  • Raising a support ticket as I have reproduced in a vanilla sxa install. Damn was looking forward to using these cool looking fallback fields. :)
    – Jen
    Sep 3, 2019 at 1:12

1 Answer 1

0

This was raised as a bug - Sitecore reference 362491.

The workaround was to have rule based display of the variant fields: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.