From f84fd9e53683f907b0b76c5ffca40110677641bc Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Wed, 17 Apr 2024 17:00:25 +0200 Subject: [PATCH] fixed mailtrap webhook event timestamp being parsed as milliseconds instead of seconds --- Wave/Data/Api/Mailtrap/WebhookEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wave/Data/Api/Mailtrap/WebhookEvent.cs b/Wave/Data/Api/Mailtrap/WebhookEvent.cs index 4b80889..9f675eb 100644 --- a/Wave/Data/Api/Mailtrap/WebhookEvent.cs +++ b/Wave/Data/Api/Mailtrap/WebhookEvent.cs @@ -35,7 +35,7 @@ public record WebhookEvent( int? ResponseCode) { public WebhookEventType Type => Enum.Parse(EventTypeString.Replace("_", ""), true); - public DateTimeOffset EventDateTime => DateTimeOffset.FromUnixTimeMilliseconds(Timestamp); + public DateTimeOffset EventDateTime => DateTimeOffset.FromUnixTimeSeconds(Timestamp); } public record Webhook {