reminder-bot / reminder-rs

**MOVED** Please go to https://gitea.jellypro.xyz/jude/reminder-bot
https://gitea.jellypro.xyz/jude/reminder-bot
GNU Affero General Public License v3.0
48 stars 10 forks source link

[edit] support to change the date format (eg : to dd/mm/yyyy) #3

Open LoganTann opened 3 years ago

LoganTann commented 3 years ago

Possible feature request : ability to change the (input) date format from a string pattern using a command, like the PHP fonction date("")

Original issue Hello, Is it possible to make a French support for this bot ? In France, we have the 24 hours format (02:14PM → 15:14), and the time format is dd/mm/yyyy (whereas the English one is mm/dd/yyyy) Maybe I can contribute, at least for a possible translation ?
JellyWX commented 3 years ago

Hi, the bot already uses both of these since I am British and we use the same systems. There may be some exceptions when it comes to the date, since the library we use for NLP by default uses mm/dd/yyyy, but it should try and guess which to use and is not too much of an issue since most of the internet is American. Other dates may be ISO formatted (YYYY-MM-DD) since this is unambiguous

LoganTann commented 3 years ago

Yes, I just noticed that it actually supports 24 hours format 👍 sorry for the disturbing

The only thing to implement is the ability to change the date format from a string ("dd/mm/yyyy") Since your bot seems to support ISO format, I think I'll use your suggestion while waiting for a possible implementation

I edited the title of the issue, and I'll edit soon its content.

JellyWX commented 3 years ago

to be unambiguous with the natural processor, you can always use something like october 12th instead of 12/10 (which in american would be 10th of december) :)

its slightly longer-hand but its better than nothing i suppose