View previous topic :: View next topic |
Author |
Message |
pepoluan n00b
Joined: 28 Feb 2011 Posts: 43 Location: Jakarta, Indonesia
|
Posted: Thu Nov 07, 2024 10:12 am Post subject: How to submit patches for elogv? |
|
|
I want to submit a patch for elogv that will add the option of specifying a different date format (currently it seems hard-coded to be "MM/DD/YY", and as a sane person I'd like it to be "YYYY-MM-DD" instead).
However, the elogv repo on GitHub ( https://github.com/gentoo/elogv ) seems to be just a mirror.
So, how do I submit a proposed patch to elogv? _________________ Nobody is Perfect.
I am Nobody. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9606 Location: beyond the rim
|
Posted: Thu Nov 07, 2024 10:45 am Post subject: Re: How to submit patches for elogv? |
|
|
pepoluan wrote: | I want to submit a patch for elogv that will add the option of specifying a different date format (currently it seems hard-coded to be "MM/DD/YY", and as a sane person I'd like it to be "YYYY-MM-DD" instead).
However, the elogv repo on GitHub ( https://github.com/gentoo/elogv ) seems to be just a mirror.
So, how do I submit a proposed patch to elogv? |
In doubt submit the patch to bugs.gentoo.org. |
|
Back to top |
|
|
nicop Tux's lil' helper
Joined: 10 Apr 2014 Posts: 87
|
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1904
|
Posted: Thu Nov 07, 2024 1:49 pm Post subject: |
|
|
pepoluan wrote: | I want to submit a patch for elogv that will add the option of specifying a different date format (currently it seems hard-coded to be "MM/DD/YY", and as a sane person I'd like it to be "YYYY-MM-DD" instead). |
It is actually using Python's %x modifier for locale specific date formatting with strftime. https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
This would have to be changed to isoformat (or another formatting string) to get the desired result.
Alternatively, there's a cheap workaround for ISO 8601 if you add en_DK.UTF-8 to /etc/locale.gen then run locale-gen:
Code: | LC_TIME=en_DK.UTF-8 elogv | This trick only works with %x strftime calls as other month names may not be what is expected. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2395
|
Posted: Thu Nov 07, 2024 2:37 pm Post subject: Re: How to submit patches for elogv? |
|
|
pepoluan wrote: | as a sane person I'd like it to be "YYYY-MM-DD" |
Don't mistake preference for sanity, because if it were, then for me you would be insane for not wanting it to be "DD/MM/YY".
Best Regards,
Georgi |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5084 Location: Bavaria
|
|
Back to top |
|
|
|