diff --git a/src/utils/comments/waline-api.ts b/src/utils/comments/waline-api.ts index cf2c906a..ad6c1c5d 100644 --- a/src/utils/comments/waline-api.ts +++ b/src/utils/comments/waline-api.ts @@ -111,7 +111,7 @@ export class WalineComments { mapComment(comment: WalineComment): RecentComments { // slice off the last 5 character to remove the timezone. const createdAt = formatTime( - new Date(comment.time).toISOString().slice(0, -5), + new Date(comment.time ?? comment.insertedAt).toISOString().slice(0, -5), { lang: this.configs.lang }