-
-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure rfc3339/iso8601 date format in HTML output? #1158
Comments
Yes, The locale option generally offers more flexibility, as you can achieve the same behavior that the Discord app provides via the Language tab in settings. Unfortunately, that also means setting a non-locale-specific date format (such as ISO8601) is no longer possible. Note that if you hover over the date, the tooltip will show the date in a locale-specific full date-time format, which is mostly unambiguous (unlike |
Thanks for your fast reply :). How viable would it be to add some iso-locale and special case it to always use this format? Digging through #879, it seems like I would need to modify |
I don't think I want to include it in the scope of the project, at least as of now. You're welcome to make a fork for your own usage, though. |
The This is the snippet I used to list locales and their date formats: https://dotnetfiddle.net/TWm6Et using System;
using System.Globalization;
class Program
{
static void Main()
{
const string format = "{0,-11} | {1}";
foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures))
{
Console.WriteLine(format, ci.Name, ci.DateTimeFormat.ShortDatePattern);
}
}
} |
Closing this issue as "won't fix". HTML format is designed to mimic the look/behavior/feel of the Discord client as closely as possible. The dates, in particular, are rendered according to the selected culture, mimicking Discord's "language" setting. Note that you can hover your cursor over any date in the export, and it will show the timestamp in a more precise format. The bottom of the export file also contains the UTC offset used to calculate timestamps, and you can also override it to UTC+0 in settings. For precise data processing, it's recommended to use the JSON format instead — it will, among others, preserve dates in ISO8601. |
Version
v2.41
Flavor
CLI (Command-Line Interface)
Platform
linux
Export format
HTML
Steps to reproduce
With
--date
replacing--locale
, I don't see any way to configure iso8601 date format for html output. Do I miss how to configure it? Otherwise I'd be really happy if I could set a "international" iso8601 locale.Details
Checklist
The text was updated successfully, but these errors were encountered: