Merge pull request #202 from nfam/master

Fix: Bookmark content displays Invalid Date if database is PostgreSQL
This commit is contained in:
Radhi 2019-10-12 21:41:35 +07:00 committed by GitHub
commit 243a88c458
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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