Database created date replaced by today's date

I have a form on my page for users to write comments. Comments are displayed in a repeater on the same page. I am using the created date in the database to be displayed in the repeater. In preview everything works perfectly, but on my live site, the created date in the database is not shown on the page, instead the current date is shown for all entries, regardless of the date they were created. Would appreciate if someone could point out where my code is not right?

$w.onReady(function () {
 
    $w("#feedbackRead").onReady( () => {
 const date = $w("#feedbackRead").getCurrentItem()._createdDate;

 const options = {
            year: 'numeric',
            month: 'short',
            day: 'numeric'
        };
        $w("#date").text = date.toLocaleDateString('en-GB', options);
    }); 
});

I don’t see a repeater in your code.

Ah yes. Thank you for pointing me in the right direction.