แก้ format แสดงเวลา support

This commit is contained in:
puri-ph4tt 2024-02-06 10:27:37 +07:00
parent aa3bd07488
commit 9bcc2de615

View file

@ -10,7 +10,7 @@ function dateChat(timestamp: string) {
const diff = moment().diff(parsedTimestamp);
if (diff < 86400000) {
const formattedDate = parsedTimestamp.format("hh:mm:") + " น.";
const formattedDate = parsedTimestamp.format("HH:mm:") + " น.";
return formattedDate;
} else {
const beYear = parsedTimestamp.year() + 543;