CRM-10976 Non-local date format used to display profile date fields on event confirm & thank you pages.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.5
    • Fix Version/s: 4.4.0
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      The "Block.tpl" displays the raw value of profile date fields (in American MM/DD/YY format) on the confirmation and thank you event registration pages when something like "Birth Date" is part of an included Profile for that event registration.

      I suspect this is as it is because the jscript date picker expects to use the date in that format.

      I've attached a fairly rudimentary patch that at least avoids the ambiguity in the date output.

        Attachments

          Activity

          [CRM-10976] Non-local date format used to display profile date fields on event confirm & thank you pages.
          Scott Kelly added a comment -

          Please IGNORE that patch! It breaks the confirmation step when a paid event is involved. Have hacked up a workaround on my site but it still means I have to display an invalid (non-localized) date on the confirmation page.

          Anyone with more knowledge in this area please chime in. Otherwise if I come up with a better solution I will revisit this issue.

          Scott Kelly added a comment -

          Revised patch to show localized (well, agnostic) date text.

          Scott Kelly added a comment -

          OK, here is my slightly better (i.e. doesn't seem to break anything) patch that I'm using on my site.

          Monish Deb added a comment -

          Checked, its working fine

            People

            • Assignee:
              Monish Deb
              Reporter:
              Scott Kelly

              Dates

              • Created:
                Updated:
                Resolved: