Ticket #2687 (closed enhancement: invalid)

Opened 12 years ago

Last modified 12 years ago

Can not change ctime display format

Reported by: BUGHUNTER Owned by:
Priority: minor Milestone:
Component: mc-core Version: 4.7.0
Keywords: Cc: bughunter@…
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

I did not find any hint about this in the docs so I assume it is at least a documentation bug - how can I change the display format of ctime?

Unfortunatley mc does only display "Mon dd hh:ss" when I am using this is the mini status - there is NO YEAR dispayed.

If there is some secret configuration setting or environment var that helps to change this, please tell me, THANKS!

Attachments

MC_NO_YEAR_IN_CTIME.png (1.0 KB) - added by BUGHUNTER 12 years ago.
mc ctime display without year

Change History

Changed 12 years ago by BUGHUNTER

mc ctime display without year

comment:1 Changed 12 years ago by BUGHUNTER

  • Cc bughunter@… added

comment:2 in reply to: ↑ description Changed 12 years ago by andrew_b

  • Status changed from new to closed
  • Keywords ctime status display removed
  • Resolution set to invalid

Replying to BUGHUNTER:

If there is some secret configuration setting or environment var that helps to change this, please tell me, THANKS!

Please find description of timeformat_recent and timeformat_old options in mc man page. That options are located in [Misc] section of mc ini file.

Last edited 12 years ago by andrew_b (previous) (diff)

comment:3 follow-up: ↓ 5 Changed 12 years ago by BUGHUNTER

sorry, I do not have any information about timeformat in mc manual page:

man -a mc | grep timeformat

gives nothing... this is Ubuntu 10.04. I however found via google some examples, but when I add this to the [Misc] section of ~/.mc/ini nothing changes as expected:

timeformat_recent=%Y %m %d %T
timeformat_old=%Y %m %D %T

It still shows ctime without the year. Why?

Thank you for your attention!

comment:4 Changed 12 years ago by BUGHUNTER

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:5 in reply to: ↑ 3 ; follow-up: ↓ 6 Changed 12 years ago by andrew_b

  • Status changed from reopened to closed
  • Resolution set to invalid

Replying to BUGHUNTER:

sorry, I do not have any information about timeformat in mc manual page:

man -a mc | grep timeformat

Use English man page to get an actual info. Localized man pages are obsoleted.

LC_ALL=C man mc | col -b | grep timeformat
       timeformat_recent
	      man page for the format specification. If this option is absent, default timeformat is used.
       timeformat_old
	      default timeformat is used.

I add this to the [Misc] section of ~/.mc/ini nothing changes as expected:

Look at the output of mc -F and find config directory. You'll see something like following:

[User data]
    Config directory: /home/borodin/.config/mc/

Since 4.8.0-pre1, mc respects FDO standard (see #1851).

comment:6 in reply to: ↑ 5 ; follow-up: ↓ 7 Changed 12 years ago by ossi

Replying to andrew_b:

Use English man page to get an actual info. Localized man pages are obsoleted.

s/an actual/current/
s/obsoleted/outdated/
at least i hope this is what you mean, otherwise i'd suggest deleting the translated manuals to make a clear statement about the situation. ;)

comment:7 in reply to: ↑ 6 Changed 12 years ago by andrew_b

Replying to ossi:

Replying to andrew_b:

Use English man page to get an actual info. Localized man pages are obsoleted.

s/an actual/current/
s/obsoleted/outdated/
at least i hope this is what you mean, otherwise i'd suggest deleting the translated manuals to make a clear statement about the situation. ;)

Thanks for the correction.

Actually, only English and Russian man pages are updated during development. Other man pages was updated last time:
es: 2009-09-30 (9a87c9cedf44d1aaf330de2dedf428a47ce9caa7)
hu, it. pl, sr: somewhen before 2009-01-10 (approx 3 yeas ago). They didn't contain description of new options, new features, etc, and there are no any volunteers to refresh them. Decide yourself what the status of that docs, whether they are obsoleted or outdated.

comment:8 follow-up: ↓ 9 Changed 12 years ago by BUGHUNTER

  • Status changed from closed to reopened
  • Resolution invalid deleted

Sorry, this is still not resolved, LC_ALL was a good guess, but I have already english localization, btw this is an utf-8 aware system so exporting LC_ALL=C only generates errors with "man mc | grep timeformat":

<standard input>:62: warning: can't find special character `u0444'
<standard input>:62: warning: can't find special character `u0430'
<standard input>:62: warning: can't find special character `u0438_0306'
<standard input>:62: warning: can't find special character `u043B'

I still may be wrong, but I believe there is no documentation to be found on an Ubuntu Lucid 10.04 LTS about the mentioned configuration strings. Also on this system these config strings do not have any effect at all - at which version where these settings introduced?

I found btw this thread - I am not the only one with these problems, however the author seems to be writing from the future: "(as of version 8.5)" ??? Or is there another source tree of mc around? Very confusing...

You might check the package yourself, it is here:
http://packages.ubuntu.com/lucid/mc

Regarding mc -F - I get this result:

Unknown option -F

I tried mc -f and got /etc/mc/ (/usr/share/mc/) as values, however putting a file named mc.ini into /etc/mc that contains

timeformat_recent=%Y %m %d %T
timeformat_old=%Y %m %D %T

also has no effect on the display of ctime.

Seems like there was something lost / changed on the way to the Debian / Ubuntu repositories...??? Please do not close this ticket again as this issue is definitely not resolved and maybe anybody will find a solution to this and I would like to receive an update then, thanks!

Thanks again for your attention!

comment:9 in reply to: ↑ 8 Changed 12 years ago by andrew_b

  • Status changed from reopened to closed
  • Version changed from master to 4.7.0
  • Resolution set to invalid
  • Milestone Future Releases deleted

Replying to BUGHUNTER:

I still may be wrong, but I believe there is no documentation to be found on an Ubuntu Lucid 10.04 LTS about the mentioned configuration strings. Also on this system these config strings do not have any effect at all - at which version where these settings introduced?
You might check the package yourself, it is here:
http://packages.ubuntu.com/lucid/mc

You're talking about 4.7.0 version. 4.7.0.x branch is not supported, use recent versions.

timeformat_recent=%Y %m %d %T
timeformat_old=%Y %m %D %T

also has no effect on the display of ctime.

man mc:

       timeformat_recent
              Change  the  time  format  used to display dates less than 6 months from now.  See strftime or date man
              page for the format specification. If this option is absent, default timeformat is used.

       timeformat_old
              Change the time format used to display  dates older than 6 months from now or for dates in the  future.
              See  strftime or date man page for the format specification. If this option is absent, default timefor
              mat is used.

Please read man strftime. I gess, you want the %Y conversion specification. Try

timeformat_recent=%b %e %Y %H:%M
timeformat_old=%b %e %Y %H:%M

in [Misc] section of ~/.mc/ini (for 4.7.0.x).

Note: See TracTickets for help on using tickets.