แก้ format แสดงเวลา support
This commit is contained in:
parent
aa3bd07488
commit
9bcc2de615
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue