ShimmyMySherbet / DiscordWebhooks

A lightweight discord webhook client with modern message constructors.
MIT License
8 stars 4 forks source link

Embed with timestamp shows incorrect time in discord #3

Closed DiFFoZ closed 1 year ago

DiFFoZ commented 2 years ago
var testMessage = new WebhookMessage()
    .WithUsername("Test Bot")
    .PassEmbed()
        .WithTimestamp(DateTime.Now)
        .Finalize()

await DiscordWebhookService.PostMessageAsync(WebhookURL, testMessage);

In discord it shows: Tomorrow at 4:32 AM Expected: Today at 8:32 PM

Time on the server is GMT +1

ShimmyMySherbet commented 2 years ago

The fix will be included in the next release. For now, you could use DateTime.Now.ToLocalTime()

ShimmyMySherbet commented 1 year ago

should be fixed in #8