trac 日期格式出错
bigzhu
posted @ Aug 16, 2010 07:19:52 AM
in trac
, 3730 阅读
最近给小组人员搭建 trac 用作任务管理,发现 trac 0.12 国际化后,有一个 bug:
时间线或其它用地方有日期的地方是这样的:
看起来还不错,都是中文,但是一查询就报错了:
是一个无效日期,或者日期格式未知。请尝试 "YYYY年MM月DD日"
临时解决办法:
启动 trac 前执行
export LC_TIME="en_US.utf8"
就会是如下的显示方式:
08/13/2010
错误是不报了,查也可以查了
问题是和中文习惯的反过来了
目前没找到更好的办法.
Dec 13, 2010 09:08:46 AM
The correct locale for displaying ISO-8601 dates using LC_TIME is the one containing en_DK It means English in Denmark, name is probably a joke. Common settings are “LC_TIME=en_DK” and “LC_TIME=en_DK.utf8”.
To see locales in use,
$ locale
LANG=en_US.UTF-8
[..]
LC_TIME=en_DK.utf8
[..]
Jan 25, 2022 04:58:19 PM
Together with the continuous escalate in Covid-19 virus, there has been a compulsory require for companies plus businesses equally to create new methods to disinfecting its offices plus business ecosystem, and luckily for us, a healthy and balanced and cleaning environment may possibly diffuse heli-copter flight spread of your infection. Disinfecting your working environment is your must-do to circumvent the pass on of bacterial contamination and health conditions. Different people today do enter in to the business daily plus unfortunately,
Jul 21, 2023 02:28:12 PM
GCERT Gujarat Conducts the Examination for 5th to Examine the knowledge and Academic Progress of Students and Promote Them to a High School Level, Primary Students are Advised to get Familiar with the Gujarat Syllabus 2024 Details Thoroughly before Starting Preparing for the Examination 2024.Gujarat Board Maths, EVS, English and Gujarati Syllabus 2024 are Designed with the idea to Foster Creative GCERT 5th Class Syllabus 2024 Thinking and the Intelligence of Primary School Students, Students who wish to Score High in the Exam, can now Download the Syllabus and Start Studying for the Exam 2024, Students of Both Elementary Various Class Could Download the GCERT Syllabus 2024 as PDF format.