Comments (4)
Would you accept a pr that adds such a locale, or would you prefer some other command line argument?
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.
from discordchatexporter.
The en-SE
locale provides a similar format to ISO8601: 2024-01-12 21:31
, tooltip: Friday, 12 January 2024 21:31
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);
}
}
}
from discordchatexporter.
Yes, --dateformat
was removed as part of #879. The main reason for that was that the application used a lot more than just one format, but only one of them was somewhat configurable.
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 mm/dd/yyyy
). Otherwise, if you really need deterministic timestamp formats, it's recommended to use the JSON export instead. The HTML export is intended to mimic the look and behavior of the Discord app.
from discordchatexporter.
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 FormatDate
, CultureInfo = ...
and probably AvailableLocales
? Would you accept a pr that adds such a locale, or would you prefer some other command line argument? (Not sure yet if and when I have time to get to creating a pr)
from discordchatexporter.
Related Issues (20)
- Apparently spurious relicensing HOT 2
- Channel is a forum error HOT 1
- Exporting threads with same name results in error HOT 1
- CSV now outputs only minute-precise localized string instead of millisecond-precise UTC timestamp HOT 1
- Reuse media option causes assets to not load in Firefox HOT 10
- Error while exporting: Input string was not in a correct format HOT 14
- System.FormatException parsing through CarlBot auditlog embeds of NQN messages HOT 2
- Recommended token retrieval method needs adjustment: No network entry for "library" HOT 1
- Discord Forums HOT 7
- Exporter creates filenames that are invalid on Windows HOT 2
- "Error pulling guilds" error
- GUI logs in to discord and "runs" - but doesn't save files HOT 6
- Failed to export message System.IO.FileNotFoundexception: Could not load file or assembly HOT 2
- System.UnauthorizedAccessException in version 2.42.4 and later HOT 24
- Error exporting channel (`path` parameter is `null`) HOT 1
- Twitch clip embeds are not displaying correctly
- When trying to close the app after export, it shows this error! HOT 1
- Does not show the replies to quoted or quoted messages in an indicative way. It directly extracts all messages
- Sticker type not recognised HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discordchatexporter.