mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-28 04:03:39 +00:00
Replace the date format option with a locale option (#1130)
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace DiscordChatExporter.Core.Utils.Extensions;
|
||||
|
||||
public static class DateExtensions
|
||||
{
|
||||
public static string ToLocalString(this DateTimeOffset instant, string format) =>
|
||||
instant.ToLocalTime().ToString(format, CultureInfo.InvariantCulture);
|
||||
}
|
||||
Reference in New Issue
Block a user