Skip to content
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

Fix regression for supported timestamp formats #389

Merged
merged 1 commit into from
Nov 26, 2014

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Nov 25, 2014

We now accept:

  • datetime objects
  • ISO8601
  • epoch seconds (both as an int or a string)

anytime a timestamp type is needed. This puts back the previous
behavior that botocore had.

To accomodate this, I've added a new date parsing utility method
in the utils module. It accepts any of the types listed above and
returns a datetime object with tzinfo. This makes it easy to write
protocol specific timestamp serializers as they now can assume
they'll always be working with a datetime object with time zone info.

cc @kyleknap @danielgtaylor

We now accept:

* datetime objects
* ISO8601
* epoch seconds (both as an int or a string)

anytime a timestamp type is needed.  This puts back the previous
behavior that botocore had.

To accomodate this, I've added a new date parsing utility method
in the utils module.  It accepts any of the types listed above and
returns a datetime object with tzinfo.  This makes it easy to write
protocol specific timestamp serializers as they now can assume
they'll always be working with a datetime object with time zone info.
@kyleknap
Copy link
Contributor

This looks good. 🚢

@jamesls jamesls merged commit 990afcd into boto:develop Nov 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants