fix issue with meta event context after 1st page load

This commit is contained in:
RaidMax 2022-06-05 16:35:39 -05:00
parent acc967e50a
commit b690579154
2 changed files with 5 additions and 4 deletions

View File

@ -47,7 +47,8 @@ namespace SharedLibraryCore
public static char[] DirectorySeparatorChars = { '\\', '/' }; public static char[] DirectorySeparatorChars = { '\\', '/' };
public static char CommandPrefix { get; set; } = '!'; 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) public static EFClient IW4MAdminClient(Server server = null)
{ {

View File

@ -55,10 +55,10 @@
} }
start++; 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"/> <partial name="~/Views/Client/Profile/Meta/_@(meta.GetType().Name).cshtml" model="meta"/>
<div style="display:none" id="metaContextDateToggle@(start)"> <div style="display:none" id="metaContextDateToggle@(meta.When.ToFileTimeUtc())">
Event occured at <span class="text-light">@meta.When.ToString()</span> Event occured at <span class="text-light">@meta.When.ToStandardFormat()</span>
</div> </div>
</div> </div>
} }