1
0
forked from mirror/misskey

[Client] Resolve #3662

This commit is contained in:
syuilo 2018-12-19 01:10:53 +09:00
parent 7f77517fc8
commit 6c47bf5b76
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -33,14 +33,7 @@ export default Vue.extend({
return typeof this.time == 'string' ? new Date(this.time) : this.time; return typeof this.time == 'string' ? new Date(this.time) : this.time;
}, },
absolute(): string { absolute(): string {
const time = this._time; return this._time.toLocaleString();
return (
time.getFullYear() + '年' +
(time.getMonth() + 1) + '月' +
time.getDate() + '日' +
' ' +
time.getHours() + '時' +
time.getMinutes() + '分');
}, },
relative(): string { relative(): string {
const time = this._time; const time = this._time;