# 이슈처리
[39 요일 영어로 보여짐] :: 포멧 수정.
This commit is contained in:
parent
c8731ea256
commit
0b70c78a94
|
@ -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>
|
||||
|
|
|
@ -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() {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user