wekan
wekan copied to clipboard
Add Feature: Provide ability to change date format
Currently, only the date format MM/DD/YYYY seems to be supported. For communities with different formats, it would be nice to be able to change it (either provide them as drop-down options, or give the option to provide a custom date formatting string).
If you change the language to British English the date format changes too but you may need to open and close a board or card for the change to happen.
On 16 Aug 2017 3:43 pm, "Thomas F. Duellmann" [email protected] wrote:
Currently, only the date format MM/DD/YYYY seems to be supported. For communities with different formats, it would be nice to be able to change it (either provide them as drop-down options, or give the option to provide a custom date formatting string).
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wekan/wekan/issues/1176, or mute the thread https://github.com/notifications/unsubscribe-auth/ANKWbjgJz5qdjYJ_bBtmrk-vdlBjEWvnks5sYvICgaJpZM4O47sL .
Date format is country specific, see latests comments at previously closed issue #838
As apparently also discussed in #838 it would be an option to change the overall language. But when working with people from different countries this is no option, unfortunately. Furthermore, it would be nice if this would not be directly intertwined. I personally prefer UIs in english and the DD.MM.YYYY date format.
Ok, this could be per user setting like:
- Language
- Date format
That would be very much appreciated!
xet7 Has this possibility been added as yet? I am also looking into the date formate DD/MM/YYYY
Thanks Lawrence
@lslamp
British English has DD/MM/YYYY and same English as US English. Date format depends on language selected, it's not yet possible to change date format independently yet, because nobody has contributed this feature as pull request to devel branch.
xet7 Thanks for the reply, much apprecaiiated. I am new to Wekan and have no clue where to make this change? Can you please point me into the right direction
I have checked my setting and they are set to the following. llamprecht@srv01cpqt03:~$ locale locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=nl_NL.UTF-8
but I see the date as MM/DD/YYYY
Why is that?
Thanks Lawrence
@lslamp
There is VirtualBox VM with build scripts, smaller one based on Ubuntu 14.04 also works for this: https://github.com/wekan/wekan/releases
You can update with:
cd repos/wekan
cd ..
./rebuild-wekan-meteor-1.6.sh
and use option 3 for rebuild.
Then use live debugging:
cd wekan
meteor
and make changes to files at wekan subdirectories, you see in browser does it work, and debug messages at terminal.
Developer Docs: https://github.com/wekan/wekan/wiki/Developer-Documentation
Directory Structure: https://github.com/wekan/wekan/wiki/Directory-Structure
Here is components like cards etc: https://github.com/wekan/wekan/tree/devel/client/components
Meteor.js etc javascript code saves all to MongoDB database.
At top right there is board hamburger menu where per-user setting of language is selected.
Below that could be per-user setting for date format.
For database additions, you need to add to models: https://github.com/wekan/wekan/tree/devel/models
You need to use migrations to get new database schema applied when upgrading: https://github.com/wekan/wekan/blob/devel/server/migrations.js
You can add your progress to this issue.
If you get it working, also check for linting errors as described in Developer Docs, fork Wekan, add your changes, submit pull request to wekan/wekan devel branch.
When you get errors, check Meteor.js docs for Meteor version 1.6.0.1, and also Google search for error messages. Also look at wekan/wekan git history with history viewer like gitk, how previous features have been implemented. If that does not help, ask question in comment to this github issue.
Thanks!
Moved to here from #838
@BjoernLudwigPTB
It's possible to support development development of this feature, more info at https://wekan.team
Thanks for the hints and updates. I'll check back on that as soon as possible. As stated at #838 we would very much appreciate the possibility to use the ISO date format YYYY-MM-DD.
+1 for ISO date and I found out that if I change the language to English (UK) the date format changes to DD/MM/YYYY but only until I do a refresh of page. Then it turns to middle endian again and reads MM/DD/YYYY. Currently at 2.17. Inconvenient.
I found this nice date picker, maybe this could help solve some date-problems? https://duetds.github.io/date-picker/
@saschafoerster
I think this is not about what datepicker is used. Current datepicker works and is translated to multiple languages.
I think that this is about date format in datepicker and related code that can be found this way:
git clone https://github.com/wekan/wekan
cd wekan
./find.sh date
./find.sh time
Someone could try changing date format somewhere. For example, ISO date for everyone, or different date format options.
Here is example how to make changes to Wekan code and make a pull request.
I have been testing, but MM/DD/YYYY is forced doesn't matter which language or country is picked.
according to https://momentjs.com/ docs:
moment().format('l'); // 3/30/2021
I am going to try and test
As apparently also discussed in #838 it would be an option to change the overall language. But when working with people from different countries this is no option, unfortunately. Furthermore, it would be nice if this would not be directly intertwined. I personally prefer UIs in english and the DD.MM.YYYY date format.
@duelle
Why does using UK English not work for your instance? You want US spelling?
@xet7
Ok, this could be per user setting like:
* Language * Date format
I think this will require a change to code wherever a date is displayed. Sounds like a lot of work.
@jrsupplee
Related to calendar popup, there is this setting, maybe date format option could be in same menu:
- Wekan v3.98: Implement option to change the first day of the week in user settings. Thanks to @marc1006.
- Wekan v4.02: Fix getStartDayOfWeek once again. Thanks to @marc1006.
And related code can be found with:
./find.sh moment
Sure adding any feature can be a lot of work. For any Wekan contributor, including me, it's thinking about priority, what would be most important to implement first.
Please note that ISO addressed a still existing issue - easy, convenient and mostly reliable sorting with YYYY-MM-DD. In 2020s still softare like Thunderbird seem to fail to do so with DD.MM.YYYY and MM/DD/YYYY. I personally use YYYY-MM-DD everywhere I can (though I live in Poland where DD.MM.YYYY is commonly used). The major benefit for me is copying and pasting ISO date does not require any extra action from me.
@mdykierek
If ISO date would be OK for everyone, then someone could change all dates to it at Wekan code.
As apparently also discussed in #838 it would be an option to change the overall language. But when working with people from different countries this is no option, unfortunately. Furthermore, it would be nice if this would not be directly intertwined. I personally prefer UIs in english and the DD.MM.YYYY date format.
@duelle
Why does using UK English not work for your instance? You want US spelling?
By default, I have an English browser setting, but anyways would like to have the ability to change the date independent from the browser setting. ISO or DD.MM.YYYY would be fine for me.
People from the US shouldn't be forced to use US date format. It is, frankly, nonsensical -- much like most American data format 'standards'. Why is it American devs never think to make these formats customizable?
@alxpettit
I have no idea about American devs.
Wekan could be called anti-American, because American software could be closed source, propietary, not having as many translations as Wekan, and not being ported to as many platforms as Wekan.
There have been about 212 devs all around the world sending pull requests to Wekan, I don't know how many of those 212 devs are American.
Wekan was originally created by mquandalle, he is from France. After him, I (xet7) started maintaining Wekan at 2016-12, and I'm from Finland.
For Wekan, nothing is forced. Wekan is Open Source, anyone can send pull request to make date formats customizable.
Although, very many at America use Wekan, and have sent pull requests to Wekan. So if thinking about Open Source in general, I think there is not anything anti-American in Wekan.
For Wekan, nothing is forced. Wekan is Open Source, anyone can send pull request to make date formats customizable.
I get that. No hard feelings -- I'm just airing some frustration I've had with prevalent questionable design decisions. I have a huge amount of respect for FOSS. I myself try to always release my stuff under GNU GPLv3.
I'm aware that I can make pull requests, and probably would have already if Wekan was written in languages I am strong in. Unfortunately, I'm not a web dev so my ability to make sane/useful PRs is very limited. :P
Ah well. Hopefully this will be fixed eventually.
@alxpettit
It's not required to be strong in languages Wekan uses. Point is to try:
https://blog.wekan.team/2018/05/wekan-v1-00-released/
Now it seems to be US middle (sick) endian only (WeKan ® Version 6.09.0). No matter what language I choose, the picker and date fields are MM/DD/YYYY + AM/PM. From somewhat bad to worse.
Hello. I have Wekan installed on Qnap on VM Debian 11. Everything (Qnap and VM Debian) is set to 24H date and time and Wekan displays US time, even when I change the language to English UK or Polish (which I use). How can i change it?