This commit is contained in:
Infi
2024-08-14 14:46:00 +02:00
parent 9d6fcd2abe
commit 16a16b1f12
7 changed files with 36 additions and 20 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
using System.Diagnostics;
using System.Globalization;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
@@ -1074,13 +1075,14 @@ public sealed class ChatLogWindow : Window
if (tab.DisplayTimestamp)
{
var timestamp = message.Date.ToLocalTime().ToString("t");
var timestamp = message.Date.ToLocalTime().ToString("t", !Plugin.Config.Use24HourClock ? null : CultureInfo.CreateSpecificCulture("es-ES"));
if (isTable)
{
if (!Plugin.Config.HideSameTimestamps || timestamp != lastTimestamp)
{
lastTimestamp = timestamp;
ImGui.TextUnformatted(timestamp);
// We use an IsItemHovered() check here instead of
// just calling SetTooltip() to avoid computing the
// tooltip string for all visible items on every
+2
View File
@@ -96,6 +96,8 @@ internal sealed class Display : ISettingsTab
ImGui.Separator();
ImGui.Spacing();
ImGuiUtil.OptionCheckbox(ref Mutable.Use24HourClock, Language.Options_Use24HourClock_Name, Language.Options_Use24HourClock_Description);
ImGuiUtil.OptionCheckbox(ref Mutable.PrettierTimestamps, Language.Options_PrettierTimestamps_Name, Language.Options_PrettierTimestamps_Description);
if (Mutable.PrettierTimestamps)