mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix ubgs
This commit is contained in:
@@ -721,11 +721,11 @@ export class RoomService {
|
||||
|
||||
formatDateToDDMMYYYY(dateStamp) {
|
||||
const date = new Date(dateStamp);
|
||||
|
||||
|
||||
const day = date.getDate().toString().padStart(2, '0');
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0'); // Month is zero-based
|
||||
const year = date.getFullYear();
|
||||
|
||||
|
||||
return `${day}-${month}-${year}`;
|
||||
}
|
||||
|
||||
@@ -780,6 +780,8 @@ export class RoomService {
|
||||
let currentDateMessage = new Date().toLocaleDateString()
|
||||
if(!this.labelDates.find( e => e == currentDateMessage)) {
|
||||
|
||||
this.labelDates.push(currentDateMessage)
|
||||
|
||||
const cloneMessage = new MessageServiceDateLabel()
|
||||
|
||||
cloneMessage.ChatSystemService = this.ChatSystemService
|
||||
|
||||
Reference in New Issue
Block a user