# 이슈처리

[39 요일 영어로 보여짐] :: 포멧 수정.
This commit is contained in:
leejinho 2019-11-27 17:56:24 +09:00
parent c8731ea256
commit 0b70c78a94
2 changed files with 6 additions and 13 deletions

View File

@ -1,5 +1,7 @@
<div class="date-split">
<span class="line"></span>
<span class="date">{{ dateInfo }}</span>
<span class="date">{{
this.message.sendDate | dateToStringFormat: 'YYYY.MM.DD KL'
}}</span>
<span class="line"></span>
</div>

View File

@ -1,25 +1,16 @@
import { Component, OnInit, Input } from '@angular/core';
import { Info, EventJson } from '@ucap-webmessenger/protocol-event';
import { DatePipe } from '@angular/common';
import moment from 'moment';
@Component({
selector: 'ucap-chat-message-box-date-splitter',
templateUrl: './date-splitter.component.html',
styleUrls: ['./date-splitter.component.scss'],
styleUrls: ['./date-splitter.component.scss']
})
export class DateSplitterComponent implements OnInit {
@Input()
message: Info<EventJson>;
dateInfo: string;
constructor() {}
constructor(private datePipe: DatePipe) {}
ngOnInit() {
this.dateInfo = this.datePipe.transform(
moment(this.message.sendDate).toDate(),
'yyyy.MM.dd EEE'
);
}
ngOnInit() {}
}