This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1/2] sq_AL: Use the correct date and time formats (bug 10496, 23724).


Albanian locale uses the 12-hour clock but some time formats did not
use any AM/PM indicator making the time ambiguous.  This commit adds
"%p" wherever it was missing.

It also sets the correct date format because the old "%Y-%b-%d" produced
rather weird results like "2018-Sht-28".

All time formats come from CLDR but as few changes have been introduced
by this commit as possible.  Some articles from MSDN and other available
online sources have been also taken into account.

	[BZ #10496]
	[BZ #23724]
	* localedata/locales/sq_AL (t_fmt): Set to "%l:%M:%S.%p %Z".
	(t_fmt_ampm): Likewise.
	(d_t_fmt): Set to "%a %-d %b %Y %l:%M:%S.%p".
	(date_fmt): Add, set to "%a %-d %b %Y %l:%M:%S.%p %Z".
	(d_fmt): Set to "%-d.%-m.%y".
---
 localedata/locales/sq_AL | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/localedata/locales/sq_AL b/localedata/locales/sq_AL
index 9cec37a..a90251f 100644
--- a/localedata/locales/sq_AL
+++ b/localedata/locales/sq_AL
@@ -303,16 +303,19 @@ mon         "janar";/
 am_pm       "PD";"MD"
 %
 % Appropriate date and time representation
-d_t_fmt     "%Y-%b-%d %I.%M.%S.%p %Z"
+d_t_fmt     "%a %-d %b %Y %l:%M:%S.%p"
+%
+% Appropriate date representation for date(1)
+date_fmt    "%a %-d %b %Y %l:%M:%S.%p %Z"
 %
 % Appropriate date representation
-d_fmt       "%Y-%b-%d"
+d_fmt       "%-d.%-m.%y"
 %
 % Appropriate time representation
-t_fmt       "%I.%M.%S. %Z"
+t_fmt       "%l:%M:%S.%p %Z"
 %
 % Appropriate 12 h time representation (%r)
-t_fmt_ampm  "%I.%M.%S.%p %Z"
+t_fmt_ampm  "%l:%M:%S.%p %Z"
 week 7;19971130;1
 first_weekday 2
 END LC_TIME
-- 
2.7.5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]