mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 21:53:08 +02:00
[Client] Fix bug
This commit is contained in:
parent
db40d76690
commit
a997e0f754
2 changed files with 10 additions and 10 deletions
|
@ -1,12 +1,12 @@
|
|||
module.exports = date => {
|
||||
if (typeof date == 'string') date = new Date(date);
|
||||
return (
|
||||
date.getFullYear() + '年' +
|
||||
date.getMonth() + 1 + '月' +
|
||||
date.getDate() + '日' +
|
||||
date.getFullYear() + '年' +
|
||||
(date.getMonth() + 1) + '月' +
|
||||
date.getDate() + '日' +
|
||||
' ' +
|
||||
date.getHours() + '時' +
|
||||
date.getMinutes() + '分' +
|
||||
date.getHours() + '時' +
|
||||
date.getMinutes() + '分' +
|
||||
' ' +
|
||||
`(${['日', '月', '火', '水', '木', '金', '土'][date.getDay()]})`
|
||||
);
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
this.tickid = null;
|
||||
|
||||
this.absolute =
|
||||
this.time.getFullYear() + '年' +
|
||||
this.time.getMonth() + 1 + '月' +
|
||||
this.time.getDate() + '日' +
|
||||
this.time.getFullYear() + '年' +
|
||||
(this.time.getMonth() + 1) + '月' +
|
||||
this.time.getDate() + '日' +
|
||||
' ' +
|
||||
this.time.getHours() + '時' +
|
||||
this.time.getMinutes() + '分';
|
||||
this.time.getHours() + '時' +
|
||||
this.time.getMinutes() + '分';
|
||||
|
||||
this.on('mount', () => {
|
||||
if (this.mode == 'relative' || this.mode == 'detail') {
|
||||
|
|
Loading…
Reference in a new issue