dyninc/dyn-python — pull request #22 by dyn-tolson (2014-11-12 20:48:01+00:00)
Title: fix for python bug?

When I run this:

```python
from dyn.mm.accounts import get_all_suppressions
# where startdate & enddate are datetime.datetime objects without tzinfo set:
get_all_suppressions(startdate, enddate, startindex=whatever)
```

I get an obscure error; the traceback goes into the files I changed, but here's the kind of exceptions I'd get: `ValueError: 'z' is a bad directive in format '%Y-%m-%dT%H:%M:%S%z'`. This seems to be because python 2.7 doesn't support %z in datetime.datetime.strptime:

http://bugs.python.org/issue6641

This is fixed in python 3.2 apparently, but people running python 2.7 will probably want this.

I don't _think_ I damaged anything since the API calls I'm making seem to use both of the utility functions I changed.