Skip to content

Commit

Permalink
fix(discord): now discord notifier notifies with correct timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
async3619 committed Dec 7, 2022
1 parent 95d58ad commit a07e78c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/notifiers/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { BaseNotifier } from "@notifiers/base";

import { Fetcher } from "@utils/fetcher";
import { Logger } from "@utils/logger";
import dayjs from "dayjs";

export interface DiscordNotifierOptions {
type: "discord";
Expand Down Expand Up @@ -66,7 +67,8 @@ export class DiscordNotifier extends BaseNotifier {
author: {
name: "Cage Report",
},
timestamp: "2022-12-29T15:00:00.000Z",
// use dayjs to generate timestamp with Z format
timestamp: dayjs().format(),
},
],
attachments: [],
Expand Down

0 comments on commit a07e78c

Please sign in to comment.