lyallp Veteran
Joined: 15 Jul 2004 Posts: 1557 Location: Adelaide/Australia
|
Posted: Wed Jan 09, 2013 7:58 am Post subject: Thunderbird/Lightning - 2 digit years in Calendar events |
|
|
What I do with Thunderbird/Lightning is that I create a birthday events and set the start/end date to be the year of the persons birth (so I can keep track of how old they are).
Only problem with this is that, for me, Thunderbird/Lightning display 2 digit years.
This has a problem. If the person is born before 1950, say, 1934, Lightning would set the birth year to 2034, not 1934.
I use locale en_AU.
This has a default date format of Code: | $ LC_ALL="en_AU" locale -k d_fmt t_fmt
d_fmt="%d/%m/%y"
t_fmt="%T"
|
In order get Thunderbird/Lightning to display the full 4 digit year, so I can enter older dates, I needed to update my locale settings such that I would get the following :-
Code: | $ LC_ALL="en_AU" locale -k d_fmt t_fmt
d_fmt="%d/%m/%Y"
t_fmt="%T"
|
The following 'Patch' can be placed in a file /etc/portage/patches/sys-libs/glibc/4_digit_year_in_en_AU_Locale.patch Code: | --- localedata/locales/en_AU~ 2012-12-23 13:22:32.000000000 +1030
+++ localedata/locales/en_AU 2013-01-09 17:52:46.723922977 +1030
@@ -109,7 +109,7 @@
"<U004E><U006F><U0076><U0065><U006D><U0062><U0065><U0072>";/
"<U0044><U0065><U0063><U0065><U006D><U0062><U0065><U0072>"
d_t_fmt "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0054><U0020><U0025><U005A>"
-d_fmt "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0079>"
+d_fmt "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0059>"
t_fmt "<U0025><U0054>"
am_pm "<U0041><U004D>";"<U0050><U004D>"
t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
|
Then, Code: | emerge --oneshot sys-libs/glibc |
I hope this proves useful to others _________________ ...Lyall |
|