mirror of
https://github.com/go-shiori/shiori.git
synced 2024-11-10 17:36:02 +08:00
Fix: Bookmark content displays Invalid Date if database is PostgreSQL #201
This commit is contained in:
parent
d2906b126a
commit
ef248c8fc4
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…
Reference in a new issue