Bug 12582 - Incorrect date and time formats in en_SG locale
Summary: Incorrect date and time formats in en_SG locale
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: GNU C Library Locale Maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 14:21 UTC by KH Teo
Modified: 2014-06-27 13:45 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Patch to en_SG (404 bytes, patch)
2011-03-14 14:21 UTC, KH Teo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description KH Teo 2011-03-14 14:21:02 UTC
Downstream report at https://bugs.launchpad.net/bugs/699886

Currently under English (Singapore) locale date_fmt is formatted like this: Friday 07,January,2011 11:44:44 PM SGT

The commas are weird and are not the convention in Singapore. The attached patch changes that and other related formats to better values:

t_fmt_ampm from "%I:%M:%S %p %Z" to "%I:%M:%S %p" (removed time zone; redundant because Singapore spans only one time zone)
t_fmt from "%I:%M:%S  %Z" to "%T" (changed to 24h time)
d_t_fmt from "%A %d,%B,%Y %I:%M:%S  %Z" to "%a %d %b %Y %r" (removed awkward commas, use abbreviated month names)
d_fmt from "%A %d,%B,%Y" to "%d/%m/%Y"
Comment 1 KH Teo 2011-03-14 14:21:40 UTC
Created attachment 5305 [details]
Patch to en_SG
Comment 2 Ulrich Drepper 2011-05-09 16:51:50 UTC
Where is the reference for the change?  And don't reference other bug report systems, all the information must be entered here.
Comment 3 KH Teo 2011-05-13 16:08:35 UTC
(In reply to comment #2)
> Where is the reference for the change? 

I'm not able to find a national standard for this, and in fact actual formats used vary from site to site:

Government websites : http://www.gov.sg/ http://www.nlb.gov.sg/
Local newspapers: http://www.straitstimes.com/ http://www.todayonline.com/

However, my point is that the current format where the day/month/year are delimited by commas does not reflect actual local usage. The formats I picked in the patch are similar to those used in en_GB (due to Singapore's historical links with the UK as a former colony.)

> And don't reference other bug report
> systems, all the information must be entered here.

Okay, but all information is presented here already.
Comment 4 Ulrich Drepper 2011-05-14 23:48:58 UTC
I looked around myself and found nothing resembling the current format.  The patch is applied.  Next time provide a patch with a complete file name.