- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 19.2k
BUG: Remove locale conversion from Stata file date #15208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| Does not close any issue since this was only identified as part of #13856. Passes all tests (not just slow) when locale is  | 
5a54fc8    to
    a23a92f      
    Compare
  
    | month_lookup = {i + 1: month for i, month in enumerate(months)} | ||
| ts = (time_stamp.strftime("%d ") + | ||
| month_lookup[time_stamp.month] + | ||
| time_stamp.strftime(" %Y %H:%M")) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could also
with pandas.util.testing.set_locale('en_US.UTF-8'):
    ....
not sure if this is better though
| https://travis-ci.org/jreback/pandas/jobs/194872508 oddly this didn't fail on py3. | 
| Current coverage is 85.99% (diff: 100%)
 
 | 
| can you rebase and push again, just to make sure this passes? ping on green. | 
Prevent locale from affecting Stata file date creation, which must be en_US. xref pandas-dev#13856
a23a92f    to
    a55bfd8      
    Compare
  
    | @jreback Green - one test fails in another module that has the same problem due to locales. | 
| thanks for the fix @bashtage | 
Prevent locale from affecting Stata file date creation, which must be en_US. xref pandas-dev#13856 Author: Kevin Sheppard <kevin.k.sheppard@gmail.com> Closes pandas-dev#15208 from bashtage/stata-locale-date-fix and squashes the following commits: a55bfd8 [Kevin Sheppard] BUG: Remove locale conversion from Stata file date
Prevent locale from affecting Stata file date creation, which must
be en_US.
xref #13856
git diff upstream/master | flake8 --diff