Hi,

Thanks for your reply.

I did some additional investigation, and for a start, I think I may 
have created some confusion. I meant to say:

        Please change the default to be:
          $Conf{CgiDateFormatMMDD} = '2';

Where in my initial mail, I typed the value '0'
YYYY-MM-DD HH:MM (selected by '2') is (AFAIK) not ambiguous, whereas 
MM/DD or DD/MM, (selected by '0' and '1') obviously are. Using the 
value '2' by default for all installations avoids the question whether 
'0' or '1' is to be preferred given the locale. It also avoids the 
question whether the user of the web interface uses the same locale as 
is configured on the server. The system administrator may then still 
choose to change the value from the default to '0' or '1'.

I could suggest three other alternatives, but I personally think they 
are inferior:
- Patch backuppc to use POSIX::strftime, with format specifiers '%c' or 
'%x %X'. If I'm not mistaken though, this will still cause the 
server's locale to be used, instead of the web interface user's 
locale...
- When backuppc is installed, ask which format is preferred
- When backuppc is installed, convert a known date using '%x', and 
parse it to find out whether MM/DD or DD/MM is to be preferred. 
Obviously, this still selects the server's locale. In addition, it 
ignores any subsequent changes to the locale...

Kind regards,

Rogier.


On 2012-05-08 10:55, ldro...@debian.org wrote:
> Hi!
> 
> I'd like to close this bug, but is there a way to detect the
> prefered system date format ? 'locale' does not help...
> 
> BR,
> 
>    Ludo
> 
> > Package: backuppc
> > Version: 3.2.1-2
> > Severity: normal
> > 
> > Dear Maintainer,
> > 
> > In the web interface, by default, backuppc uses US-style date
> > formats of the form mm/dd, e.g: 3/14. This is confusing to
> > non-US users. In the case of dates like 3/12, the format is even
> > ambiguous.
> > 
> > Please change the default to be:
> >     $Conf{CgiDateFormatMMDD} = '0';
> > 
> > This has the added benefit of adding the year in the start date
> > colum of the hosts summary. Without the year, for older backups,
> > the creation year remains a guess at best.
> > 
> > Regards,
> > 
> > Rogier.
> > 
> > 
> > -- System Information:
> > Debian Release: wheezy/sid
> > 
> >   APT prefers testing
> >   APT policy: (500, 'testing')
> > 
> > Architecture: i386 (x86_64)
> > 
> > Kernel: Linux 3.2.0-1-amd64 (SMP w/2 CPU cores)
> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> > Shell: /bin/sh linked to /bin/dash
> > 
> > Versions of packages backuppc depends on:
> > ii  adduser                                    3.113+nmu1
> > ii  bzip2                                      1.0.6-1
> > ii  debconf [debconf-2.0]                      1.5.41
> > ii  dpkg                                       1.16.1.2
> > ii  exim4                                      4.77-1
> > ii  exim4-daemon-light [mail-transport-agent]  4.77-1+b1
> > ii  iputils-ping                               3:20101006-1+b1
> > ii  libarchive-zip-perl                        1.30-5
> > ii  libc6                                      2.13-26
> > ii  libcompress-zlib-perl                      <none>
> > ii  libtime-modules-perl                       2011.0517-1
> > ii  libwww-perl                                6.04-1
> > ii  mini-httpd [httpd]                         1.19-9.2+b1
> > ii  perl [libdigest-md5-perl]                  5.14.2-7
> > ii  samba-common-bin                           2:3.6.3-1
> > ii  smbclient                                  2:3.6.3-1
> > ii  tar                                        1.26-4
> > ii  ucf                                        3.0025+nmu2
> > 
> > Versions of packages backuppc recommends:
> > ii  libfile-rsyncp-perl          0.68-1.1+b3
> > ii  libio-dirent-perl            0.04-2+b3
> > ii  openssh-client [ssh-client]  1:5.9p1-2
> > ii  rrdtool                      1.4.7-1
> > ii  rsync                        3.0.9-1
> > 
> > Versions of packages backuppc suggests:
> > ii  elinks [www-browser]     0.12~pre5-7
> > ii  iceweasel [www-browser]  10.0.2-1
> > ii  konqueror [www-browser]  4:4.6.5-1
> > ii  par2                     0.4-11
> > ii  w3m [www-browser]        0.5.3-5
> > 
> > -- Configuration Files:
> > /etc/backuppc/config.pl [Errno 13] Permission denied:
> > u'/etc/backuppc/config.pl'
> > /etc/backuppc/hosts changed [not included]
> > 
> > -- debconf information excluded



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to