如何更改 Ubuntu 中系统范围的短日期格式?例如,Thunderbird 以 DD/MM/YY 格式显示日期,我想将其更改为 MM/DD/YY 或 YYYY-MM-DD。
到目前为止我能找到的最好的信息是在这个线程中:
http://ubuntuforums.org/showthread.php?t=193916
编辑:我想更改系统范围的日期格式,以便我的所有应用程序都使用这种新的日期格式。
最佳答案
- 安装并启动“dconf Editor”,导航至 com -> 规范 -> 指标 -> 日期时间。
- 将
time-format
的值设置为custom
。 - 通过编辑
custom-time-format
的值来自定义时间和日期格式,例如将其设置为“2017-12-31 23:59:59”格式的%Y-%m-%d %H:%M:%S
。 - 重新登录以查看更改的效果。
您还可以通过终端中的命令来执行此操作:
gsettings set com.canonical.indicator.datetime time-format 'custom'
gsettings set com.canonical.indicator.datetime custom-time-format '%Y-%m-%d %H:%M:%S'
来源:http://ubuntuhandbook.org/index.php/2015/12/time-date-format-ubuntu-panel/
关于datetime - 更改 Ubuntu 中的短日期格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/159950/