我有两个使用相同LDAP / Kerberos服务器的debian服务器,但是在klist的输出中的日期以不同的格式显示 - 在挤压时为m / d / Y,在wheezy上为d / m / Y.
有没有办法将它改为m / d / Y格式?
区域设置 - 挤压
user@squeeze:~ > locale -a
C
en_US.utf8
POSIX
user@squeeze:~ > locale -ck LC_TIME
LC_TIME
abday="Sun;Mon;Tue;Wed;Thu;Fri;Sat"
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
abmon="Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec"
mon="January;February;March;April;May;June;July;August;September;October;November;December"
am_pm="AM;PM"
d_t_fmt="%a %d %b %Y %r %Z"
d_fmt="%m/%d/%Y"
t_fmt="%r"
t_fmt_ampm="%I:%M:%S %p"
era=
era_year=""
era_d_fmt=""
alt_digits=
era_d_t_fmt=""
era_t_fmt=""
time-era-num-entries=0
time-era-entries="S"
week-ndays=7
week-1stday=19971130
week-1stweek=7
first_weekday=1
first_workday=2
cal_direction=1
timezone=""
date_fmt="%a %b %e %H:%M:%S %Z %Y"
time-codeset="UTF-8"
区域设置 - wheezy
user@wheezy:~ > locale -a
C
C.UTF-8
en_US.utf8
POSIX
user@wheezy:~ > locale -ck LC_TIME
LC_TIME
abday="Sun;Mon;Tue;Wed;Thu;Fri;Sat"
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
abmon="Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec"
mon="January;February;March;April;May;June;July;August;September;October;November;December"
am_pm="AM;PM"
d_t_fmt="%a %d %b %Y %r %Z"
d_fmt="%m/%d/%Y"
t_fmt="%r"
t_fmt_ampm="%I:%M:%S %p"
era=
era_year=""
era_d_fmt=""
alt_digits=
era_d_t_fmt=""
era_t_fmt=""
time-era-num-entries=0
time-era-entries="S"
week-ndays=7
week-1stday=19971130
week-1stweek=7
first_weekday=1
first_workday=2
cal_direction=1
timezone=""
date_fmt="%a %b %e %H:%M:%S %Z %Y"
time-codeset="UTF-8"
正如您所看到的,到目前为止所有相同和区域设置似乎都相似。
但是在Squeeze:
user@squeeze:~ > klist
Ticket cache: FILE:/tmp/krb5cc_1036_sTiFu16216
Default principal: user@domain
Valid starting Expires Service principal
06/01/14 15:27:17 06/08/14 15:27:13 krbtgt/domain
在Wheezy上我得到了:
user@wheezy:~ > klist
Ticket cache: FILE:/tmp/krb5cc_1036_W4vFn5D3Cr
Default principal: user@domain
Valid starting Expires Service principal
01/06/2014 15:28 08/06/2014 15:28 krbtgt/domain