Skip to content

Commit

Permalink
Fix: Bookmark content displays Invalid Date if database is PostgreSQL g…
Browse files Browse the repository at this point in the history
  • Loading branch information
nfam committed Oct 12, 2019
1 parent d2906b1 commit ef248c8
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 63 deletions.
5 changes: 4 additions & 1 deletion internal/view/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Loading

0 comments on commit ef248c8

Please sign in to comment.