We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daa6a76 commit c213819Copy full SHA for c213819
1 file changed
src/utils/comments/waline-api.ts
@@ -111,7 +111,7 @@ export class WalineComments {
111
mapComment(comment: WalineComment): RecentComments {
112
// slice off the last 5 character to remove the timezone.
113
const createdAt = formatTime(
114
- new Date(comment.time).toISOString().slice(0, -5),
+ new Date(comment.time ?? comment.insertedAt).toISOString().slice(0, -5),
115
{
116
lang: this.configs.lang
117
}
0 commit comments