Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Thunderbird/Lightning - 2 digit years in Calendar events
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1552
Location: Adelaide/Australia

PostPosted: Wed Jan 09, 2013 7:58 am    Post subject: Thunderbird/Lightning - 2 digit years in Calendar events Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum