Sources Bugzilla – Bug 10425
[PATCH] LC_TIME for it_IT it_CH wrong
Last modified: 2010-09-25 08:05:09 UTC
Accordingly to this file [1] and also because I'm Italian, I've seen an error in the way the date is displayed in linux. The correct formati for Italian speakers is: day_name day_number month_name year HH:MM:SS in the LC_TIME date_fmt things are really mixed up and should be changed to: %a %e %b %Y, %H:%M:%S, %Z [1]: ftp://ftp.software.ibm.com/software/globalization/locales/Italy-Italian_Date.pdf
popular Italian newspaper: http://www.corriere.it the date is under the title "CORRIERE DELLA SERA", in the middle
Created attachment 4070 [details] italy.patch possible patch, that swaps the fields. It does not add the "," since I don't know if it must be added or not
Is this the correct place, or should I ask in another bugzilla?
I'm sorry to ping you again, but I think this is an important and very simple bug that can be fixed in 2 minutes, and a patch is present. It just needs your attention
Created attachment 4263 [details] italian.patch This is the correct format (note that : is now .) updated patch accordingly. "%a %e %b %Y, %H.%M.%S, %Z" Now you just need to commit
Is this bugzilla dead??
I've added the changes.
Created attachment 4879 [details] lc_time_italian.patch New patch. Just a question: what's the differnce betwen date_fmt and d_t_fmt? Thanks!
What are you changing again and why with this new patch? Can you add a changelog entry too?
I'll answer tomorrow, since I have to look back at the patch because I forgot the changelog. Can you tell me the difference from date_fmt and d_t_fmt?
Frankly, I have not been able to figure what date_fmt is good for quickly - its purpose seems to be the same as d_fmt, but I cannot find it being used anywhere within glibc...
It's the default date(1) format.
So there's no reason for them to be different, right?
Created attachment 5001 [details] lc_time_italian.patch This patch contains the changelog, and drops the bits for it_CH since I'm from Italy, not from Switzerland.
reopening due to adding the changelog
Created attachment 5002 [details] lc_time_italian.patch Sorry, I forgot to add a comment
Nicolo, different date and time formats are used depending from format : % Appropriate date and time representation date_fmt ... % Appropriate date and time representation (%c) with abbreviations d_t_fmt ... % Appropriate date representation (%x) d_fmt ... % Appropriate time representation (%X) t_fmt ...
Ok, so I will change date_fmt to not contain abbreviations. What about the timezone? Should it be present for both date_fmt and d_fmt?