Bug: Freemarker and Instant
Clicking "Print version" on https://www.genesys-pgr.org/descriptorlists/06760839-1243-4858-af1a-afa4004ba42e makes an API call to https://api.genesys-pgr.org/api/v1/descriptorlist/06760839-1243-4858-af1a-afa4004ba42e/html.
This results in
{
"error": "freemarker.core._TemplateModelException: The string doesn't match the expected date/time/date-time format. The string to parse was: \"2022-12-27T10:14:52Z\". The expected format was: \"MMM d, y\".\nThe nested reason given follows:\nUnparseable date: \"2022-12-27T10:14:52Z\"\n\n----\nFTL stack trace (\"~\" means nesting-related):\n\t- Failed at: ${descriptorList.lastModifiedDate?date} [in template \"descriptorlist/booklet.ftl\" at line 99, column 18]\n----\nThe string doesn't match the expected date/time/date-time format. The string to parse was: \"2022-12-27T10:14:52Z\". The expected format was: \"MMM d, y\".\nThe nested reason given follows:\nUnparseable date: \"2022-12-27T10:14:52Z\"\n\n----\nFTL stack trace (\"~\" means nesting-related):\n\t- Failed at: ${descriptorList.lastModifiedDate?date} [in template \"descriptorlist/booklet.ftl\" at line 99, column 18]\n----\nUnparseable date: \"2022-12-27T10:14:52Z\"\nUnparseable date: \"2022-12-27T10:14:52Z\"",
"localizedError": "freemarker.core._TemplateModelException: The string doesn't match the expected date/time/date-time format. The string to parse was: \"2022-12-27T10:14:52Z\". The expected format was: \"MMM d, y\".\nThe nested reason given follows:\nUnparseable date: \"2022-12-27T10:14:52Z\"\n\n----\nFTL stack trace (\"~\" means nesting-related):\n\t- Failed at: ${descriptorList.lastModifiedDate?date} [in template \"descriptorlist/booklet.ftl\" at line 99, column 18]\n----"
}