diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 16:32:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 16:32:46 +0900 |
| commit | a997e0f754cd0c0e0af91c153022bde97586824b (patch) | |
| tree | 1e59422d39dfbeadcf81f7fcf918f07374e2a3c6 /src/web/app/common/scripts | |
| parent | [Client] Update design (diff) | |
| download | sharkey-a997e0f754cd0c0e0af91c153022bde97586824b.tar.gz sharkey-a997e0f754cd0c0e0af91c153022bde97586824b.tar.bz2 sharkey-a997e0f754cd0c0e0af91c153022bde97586824b.zip | |
[Client] Fix bug
Diffstat (limited to 'src/web/app/common/scripts')
| -rw-r--r-- | src/web/app/common/scripts/date-stringify.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/web/app/common/scripts/date-stringify.js b/src/web/app/common/scripts/date-stringify.js index 48e19704d5..d803587f2c 100644 --- a/src/web/app/common/scripts/date-stringify.js +++ b/src/web/app/common/scripts/date-stringify.js @@ -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()]})` ); |