mirror of
https://github.com/go-shiori/shiori.git
synced 2025-09-08 14:05:54 +08:00
Merge pull request #202 from nfam/master
Fix: Bookmark content displays Invalid Date if database is PostgreSQL
This commit is contained in:
commit
243a88c458
2 changed files with 66 additions and 63 deletions
|
@ -52,7 +52,10 @@
|
|||
},
|
||||
methods: {
|
||||
localtime() {
|
||||
var strTime = `${this.modified.replace(" ", "T")}+00:00`;
|
||||
var strTime = this.modified.replace(" ", "T");
|
||||
if (!strTime.endsWith("Z")) {
|
||||
strTime += "Z";
|
||||
}
|
||||
return dayjs(strTime).format("D MMMM YYYY, HH:mm:ss");
|
||||
},
|
||||
loadSetting() {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue