Ticket #4937 enhancement closed fixed
Fix for locale-dependant date formatting in imap and conch
| Reported by: | facundobatista | Owned by: | exarkun |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | Branch: | branches/imap-conch-date-formatting-4937 | |
| Author: | cyli, facundobatista | Launchpad Bug: |
Description
These modules had a date formatting using time.strftime() with the '%b' formatter, that is locale dependent.
So, if you run any of these in a non-English machine, you'll break a little the protocols.
As discussed in the mail list, these dates should be formatted using always the English month abbreviation.
This patch fixes that.
Also, I took the liberty to improve a little the code in conch/ls.py around the date formatting modifications (adding strings is really expensive).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

