Opened 20 years ago
Closed 20 years ago
#492 closed defect (bug) (fixed)
mysql2date does not get weekday/month abbreviations from locale
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
The mysql2date function (wp-includes/functions.php) does not use the $month_abbrev and $weekday_abbrev arrays, but instead gets the first 3 characters of the day/month name. In English, of course, it works quite perfectly, but when using localized month/date names there are two problems:
1) In some languages the abbreviations are much or less different (not exactly 3 symbols, not exactly the first three and so on)
2) substr is not unicode safe. As a result we get the first three bytes but, when the string is in utf8 I get the first character and a half :)
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
http://wordpress.org/pipermail/cvs_wordpress.org/2004-November/000696.html