Menu

#83 FreeMarker template error date/time/date-time format

Fixed
None
Medium
FreeMarker
Defect
2018-09-24
2018-09-22
nyj3c
No

Please fix date format.

The string doesn't match the expected date/time/date-time format. The string to parse was: "22/09/2018 16:35:06". The expected format was: "MMM d, yyyy". The nested reason given follows: Unparseable date: "22/09/2018 16:35:06"

Failed at: ${u.registrationDate?date} [in template "default/user_profile.htm" at line 45, column 79]

in templates
default/user_profile.htm
default/mobile/user_profile.htm

Related

Wiki: NewFeatures260

Discussion

  • Ulf Dittmer

    Ulf Dittmer - 2018-09-24
    • status: New --> Fixed
    • assigned_to: Ulf Dittmer
     
  • Ulf Dittmer

    Ulf Dittmer - 2018-09-24

    Using ${u.registrationDay} rather than ${u.registrationDate?date} is the better approach.

     

Log in to post a comment.