You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I just updated to Nightly Version, the configuration I use is as follows
<script>
Artalk.init({
el: '#Comments',
pageKey: '',
pageTitle: '',
server: 'https://comment.bibica.net',
site: 'BIBICA.NET',
dateFormatter: (date) => {
// Định dạng ngày tháng
const day = new Intl.DateTimeFormat('en-GB', { day: '2-digit' }).format(date);
const month = new Intl.DateTimeFormat('en-GB', { month: '2-digit' }).format(date);
const year = new Intl.DateTimeFormat('en-GB', { year: 'numeric' }).format(date);
let time = new Intl.DateTimeFormat('en-GB', { hour: '2-digit', minute: '2-digit', hour12: true }).format(date);
// Chuyển đổi 'am' và 'pm' thành 'AM' và 'PM'
time = time.toUpperCase();
return `${day}/${month}/${year} at ${time}`;
}
});
</script>
Currently Artalk uses the default y-m-d, example 2024-07-05
Is there any way to convert it back to d/m/y at g:i A format (for example, 05/07/2024 at 4:18 AM)?
The text was updated successfully, but these errors were encountered: