Skip to content

Commit

Permalink
fix issue with meta event context after 1st page load
Browse files Browse the repository at this point in the history
RaidMax committed Jun 5, 2022
1 parent ae05bc4 commit 6b243cf
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion SharedLibraryCore/Utilities.cs
Original file line number Diff line number Diff line change
@@ -47,7 +47,8 @@ public static class Utilities
public static char[] DirectorySeparatorChars = { '\\', '/' };
public static char CommandPrefix { get; set; } = '!';

public static string ToStandardFormat(this DateTime? time) => time?.ToString("yyyy-MM-dd H:mm:ss");
public static string ToStandardFormat(this DateTime? time) => time?.ToString("yyyy-MM-dd H:mm:ss UTC");
public static string ToStandardFormat(this DateTime time) => time.ToString("yyyy-MM-dd H:mm:ss UTC");

public static EFClient IW4MAdminClient(Server server = null)
{
Original file line number Diff line number Diff line change
@@ -55,10 +55,10 @@
}
start++;

<div class="profile-meta-entry loader-data-time" data-time="@meta.When.ToFileTimeUtc()" onclick="$('#metaContextDateToggle@(start)').show()">
<div class="profile-meta-entry loader-data-time" data-time="@meta.When.ToFileTimeUtc()" onclick="$('#metaContextDateToggle@(meta.When.ToFileTimeUtc())').show()">
<partial name="~/Views/Client/Profile/Meta/_@(meta.GetType().Name).cshtml" model="meta"/>
<div style="display:none" id="metaContextDateToggle@(start)">
Event occured at <span class="text-light">@meta.When.ToString()</span>
<div style="display:none" id="metaContextDateToggle@(meta.When.ToFileTimeUtc())">
Event occured at <span class="text-light">@meta.When.ToStandardFormat()</span>
</div>
</div>
}

0 comments on commit 6b243cf

Please sign in to comment.