mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 20:49:06 +01:00
[Client] Fix bug
This commit is contained in:
parent
486910c498
commit
4c1ff2f707
@ -1,12 +1,12 @@
|
|||||||
module.exports = date => {
|
module.exports = date => {
|
||||||
if (typeof date == 'string') date = new Date(date);
|
if (typeof date == 'string') date = new Date(date);
|
||||||
return (
|
return (
|
||||||
date.getFullYear() + '年' +
|
date.getFullYear() + '年' +
|
||||||
date.getMonth() + 1 + '月' +
|
(date.getMonth() + 1) + '月' +
|
||||||
date.getDate() + '日' +
|
date.getDate() + '日' +
|
||||||
' ' +
|
' ' +
|
||||||
date.getHours() + '時' +
|
date.getHours() + '時' +
|
||||||
date.getMinutes() + '分' +
|
date.getMinutes() + '分' +
|
||||||
' ' +
|
' ' +
|
||||||
`(${['日', '月', '火', '水', '木', '金', '土'][date.getDay()]})`
|
`(${['日', '月', '火', '水', '木', '金', '土'][date.getDay()]})`
|
||||||
);
|
);
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
this.tickid = null;
|
this.tickid = null;
|
||||||
|
|
||||||
this.absolute =
|
this.absolute =
|
||||||
this.time.getFullYear() + '年' +
|
this.time.getFullYear() + '年' +
|
||||||
this.time.getMonth() + 1 + '月' +
|
(this.time.getMonth() + 1) + '月' +
|
||||||
this.time.getDate() + '日' +
|
this.time.getDate() + '日' +
|
||||||
' ' +
|
' ' +
|
||||||
this.time.getHours() + '時' +
|
this.time.getHours() + '時' +
|
||||||
this.time.getMinutes() + '分';
|
this.time.getMinutes() + '分';
|
||||||
|
|
||||||
this.on('mount', () => {
|
this.on('mount', () => {
|
||||||
if (this.mode == 'relative' || this.mode == 'detail') {
|
if (this.mode == 'relative' || this.mode == 'detail') {
|
||||||
|
Loading…
Reference in New Issue
Block a user