Date formatting with en_US locale
Hajimu UMEMOTO
ume at FreeBSD.org
Sat Jun 18 09:10:49 UTC 2016
Hi,
vangyzen> Above, I mentioned two issues. The other one is, the date format for
vangyzen> en_US pads the month with a zero, but the day with a space. So, June 7 is:
vangyzen> 06/ 7/16
vangyzen> That looks weird. It should pad both with zeros. I'd be happy to fix
vangyzen> it, but I don't see how: There isn't an "xformat" callback in the
vangyzen> cldr2def.pl script, and it's not clear how to add one. If you can
vangyzen> explain, I'll do it. If you can fix it, I'll be grateful. ;)
Does the attached patch fix your issue?
Though there are many locales it should be fixed, I've included only
en_US one, in this time.
Sincerely,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x_fmt-zerofill.diff
Type: text/x-patch
Size: 1685 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20160618/60f66a07/attachment.bin>
-------------- next part --------------
--
Hajimu UMEMOTO
ume at mahoroba.org ume at FreeBSD.org
http://www.mahoroba.org/~ume/
More information about the freebsd-current
mailing list