garnaat / placebo

Make boto3 calls that look real but have no effect.
Apache License 2.0
394 stars 28 forks source link

handle timezones in datetimes #50

Closed brunson closed 7 years ago

brunson commented 8 years ago

Boto3 returns timezone aware datetimes, so when doing date math with these objects operations fail with the mocked placebo data because it is generating timezone naive datetimes.

AWS API always returns times in UTC, so I didn't bother trying to modify the serializer, I just injected the UTC timezone.

edu-zamora commented 8 years ago

It would be really nice if this gets merged :) We had exactly the same issue that @brunson specified and had to use his branch in order to make both our tests and code work properly.

wayne-luminal commented 8 years ago

+1 I'm having this problem as well