fixed mailtrap webhook event timestamp being parsed as milliseconds instead of seconds
This commit is contained in:
parent
cc00bf5cb3
commit
f84fd9e536
|
@ -35,7 +35,7 @@ public record WebhookEvent(
|
|||
int? ResponseCode) {
|
||||
|
||||
public WebhookEventType Type => Enum.Parse<WebhookEventType>(EventTypeString.Replace("_", ""), true);
|
||||
public DateTimeOffset EventDateTime => DateTimeOffset.FromUnixTimeMilliseconds(Timestamp);
|
||||
public DateTimeOffset EventDateTime => DateTimeOffset.FromUnixTimeSeconds(Timestamp);
|
||||
}
|
||||
|
||||
public record Webhook {
|
||||
|
|
Loading…
Reference in a new issue