TypeError: /home/obdir52/web/soc52.ru/public_html/src/views/index.ejs:234
   232|         <div class="container">
   233|             <% if(contentType == 'newsFullText') {%>
>> 234|                 <%- include("newsFullText.ejs") %>
   235|             <%} else if(contentType == 'publicationsFullText'){%>
   236|                 <%- include("newsFullText.ejs") %>
   237|             <%} else if(contentType == 'quality'){%>

/home/obdir52/web/soc52.ru/public_html/src/views/newsFullText.ejs:1
>> 1| <%
   2|
   3| function formattedDate(d = new Date) {
   4|     let month = String(d.getMonth() + 1);

Cannot read property 'created' of undefined
   at eval (/home/obdir52/web/soc52.ru/public_html/src/views/newsFullText.ejs:21:44)
   at newsFullText (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:691:17)
   at include (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:689:39)
   at eval (/home/obdir52/web/soc52.ru/public_html/src/views/index.ejs:122:17)
   at index (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:691:17)
   at tryHandleCache (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:272:36)
   at View.exports.renderFile [as engine] (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:489:10)
   at View.render (/home/obdir52/web/soc52.ru/public_html/node_modules/express/lib/view.js:135:8)
   at tryRender (/home/obdir52/web/soc52.ru/public_html/node_modules/express/lib/application.js:640:10)
   at Function.render (/home/obdir52/web/soc52.ru/public_html/node_modules/express/lib/application.js:592:3)