Fix: Bookmark content displays Invalid Date if database is PostgreSQL #201

This commit is contained in:
Ninh Pham 2019-10-12 20:15:11 +07:00
parent d2906b126a
commit ef248c8fc4
No known key found for this signature in database
GPG key ID: 37A4E4B9141386DE
2 changed files with 66 additions and 63 deletions

View file

@ -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