Skip to content

Commit

Permalink
fix join date in /userinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed May 21, 2024
1 parent 59da554 commit a777fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Helpers/UserInfoHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ public static Task<DiscordEmbed> GenerateUserInfoEmbed(DiscordMember member)
{
var registeredAt = $"{IdHelpers.GetCreationTimestamp(member.Id, true)}";

var t = member.JoinedAt - new DateTime(1970, 1, 1);
var joinedAtTimestamp = (int)t.TotalSeconds;
var joinDateTimeOffset = (DateTimeOffset)member.JoinedAt.DateTime;
var joinedAtTimestamp = joinDateTimeOffset.ToUnixTimeMilliseconds();

List<string> notablePerms = [];
if (member.IsOwner)
Expand Down

0 comments on commit a777fca

Please sign in to comment.