แก้ 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);
|
const diff = moment().diff(parsedTimestamp);
|
||||||
|
|
||||||
if (diff < 86400000) {
|
if (diff < 86400000) {
|
||||||
const formattedDate = parsedTimestamp.format("hh:mm:") + " น.";
|
const formattedDate = parsedTimestamp.format("HH:mm:") + " น.";
|
||||||
return formattedDate;
|
return formattedDate;
|
||||||
} else {
|
} else {
|
||||||
const beYear = parsedTimestamp.year() + 543;
|
const beYear = parsedTimestamp.year() + 543;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue