Skip to content

Conversation

SamRemis
Copy link
Member

@SamRemis SamRemis changed the title Port 3568 Support millisecond timestamp precision for bedrock-agentcore Oct 14, 2025
Copy link
Contributor

@aemous aemous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, left a few small comments

raise ValueError(
f"Invalid timestamp precision found while creating serializer: {timestamp_precision}"
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we remove this extra newline to match the formatting in botocore?

def _timestamp_rfc822(self, value):
"""Return RFC822 timestamp (always second precision - RFC doesn't support sub-second)."""
if isinstance(value, datetime.datetime):
value = self._timestamp_unixtimestamp(value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line should be updated to match the botocore PR


def _timestamp_rfc822(self, value):
"""Return RFC822 timestamp (always second precision - RFC doesn't support sub-second)."""
if isinstance(value, datetime.datetime):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: missing one-line comment, to align with the botocore PR

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